chore: apply clippy recos
This commit is contained in:
@@ -184,8 +184,8 @@ async fn section_face_boxes(pool: &PgPool) {
|
|||||||
// Equivalence gate: same (id, person_id, bbox) set both ways, all N present.
|
// 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 b = boxes_before(pool, file_id, user_id).await;
|
||||||
let mut a = boxes_after(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));
|
b.sort_by_key(|x| x.0);
|
||||||
a.sort_by(|x, y| x.0.cmp(&y.0));
|
a.sort_by_key(|x| x.0);
|
||||||
assert_eq!(b, a, "face-box projections differ");
|
assert_eq!(b, a, "face-box projections differ");
|
||||||
assert_eq!(a.len(), n, "expected all faces");
|
assert_eq!(a.len(), n, "expected all faces");
|
||||||
println!("# [Q1] gate: wide/narrow face-box sets identical ({n} faces) — OK");
|
println!("# [Q1] gate: wide/narrow face-box sets identical ({n} faces) — OK");
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ use axum::{
|
|||||||
|
|
||||||
use crate::application::dtos::drive_dto::DriveDto;
|
use crate::application::dtos::drive_dto::DriveDto;
|
||||||
use crate::application::dtos::grant_dto::{GrantDto, RoleDto, SubjectDto, SubjectTypeDto};
|
use crate::application::dtos::grant_dto::{GrantDto, RoleDto, SubjectDto, SubjectTypeDto};
|
||||||
use crate::application::dtos::user_dto::UserDto;
|
|
||||||
use crate::application::dtos::plugin_dto::{
|
use crate::application::dtos::plugin_dto::{
|
||||||
PluginInfoDto, PluginLogEntryDto, PluginLogPageDto, PluginLogQueryDto, PluginRetentionDto,
|
PluginInfoDto, PluginLogEntryDto, PluginLogPageDto, PluginLogQueryDto, PluginRetentionDto,
|
||||||
SetEnabledDto,
|
SetEnabledDto,
|
||||||
@@ -22,6 +21,7 @@ use crate::application::dtos::settings_dto::{
|
|||||||
SmtpTestResultDto, StartMigrationDto, TestOidcConnectionDto, TestStorageConnectionDto,
|
SmtpTestResultDto, StartMigrationDto, TestOidcConnectionDto, TestStorageConnectionDto,
|
||||||
UpdateUserActiveDto, UpdateUserQuotaDto, UpdateUserRoleDto, VerifyMigrationDto,
|
UpdateUserActiveDto, UpdateUserQuotaDto, UpdateUserRoleDto, VerifyMigrationDto,
|
||||||
};
|
};
|
||||||
|
use crate::application::dtos::user_dto::UserDto;
|
||||||
use crate::application::ports::authorization_ports::AuthorizationEngine;
|
use crate::application::ports::authorization_ports::AuthorizationEngine;
|
||||||
use crate::application::ports::plugin_ports::{LogQuery, PluginManagementPort, PluginMgmtError};
|
use crate::application::ports::plugin_ports::{LogQuery, PluginManagementPort, PluginMgmtError};
|
||||||
use crate::application::ports::storage_ports::StorageUsagePort;
|
use crate::application::ports::storage_ports::StorageUsagePort;
|
||||||
|
|||||||
Reference in New Issue
Block a user