chore: apply clippy recos

This commit is contained in:
Edouard Vanbelle
2026-07-19 16:20:18 +02:00
parent 35f4984463
commit d4ae23ef13
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -184,8 +184,8 @@ async fn section_face_boxes(pool: &PgPool) {
// Equivalence gate: same (id, person_id, bbox) set both ways, all N present.
let mut b = boxes_before(pool, file_id, user_id).await;
let mut a = boxes_after(pool, file_id, user_id).await;
b.sort_by(|x, y| x.0.cmp(&y.0));
a.sort_by(|x, y| x.0.cmp(&y.0));
b.sort_by_key(|x| x.0);
a.sort_by_key(|x| x.0);
assert_eq!(b, a, "face-box projections differ");
assert_eq!(a.len(), n, "expected all faces");
println!("# [Q1] gate: wide/narrow face-box sets identical ({n} faces) — OK");
+1 -1
View File
@@ -11,7 +11,6 @@ use axum::{
use crate::application::dtos::drive_dto::DriveDto;
use crate::application::dtos::grant_dto::{GrantDto, RoleDto, SubjectDto, SubjectTypeDto};
use crate::application::dtos::user_dto::UserDto;
use crate::application::dtos::plugin_dto::{
PluginInfoDto, PluginLogEntryDto, PluginLogPageDto, PluginLogQueryDto, PluginRetentionDto,
SetEnabledDto,
@@ -22,6 +21,7 @@ use crate::application::dtos::settings_dto::{
SmtpTestResultDto, StartMigrationDto, TestOidcConnectionDto, TestStorageConnectionDto,
UpdateUserActiveDto, UpdateUserQuotaDto, UpdateUserRoleDto, VerifyMigrationDto,
};
use crate::application::dtos::user_dto::UserDto;
use crate::application::ports::authorization_ports::AuthorizationEngine;
use crate::application::ports::plugin_ports::{LogQuery, PluginManagementPort, PluginMgmtError};
use crate::application::ports::storage_ports::StorageUsagePort;