make clippy happy again

This commit is contained in:
reaster authored and Ellis Git committed 2026-07-25 13:55:30 +00:00
1 parent fb7a378d63
commit a838d59cfc
1 file changed
+2 -6
+2 -6
View File
@@ -21,12 +21,8 @@ pub(crate) async fn get_hierarchy_route(
// Default to MAX_MAX_DEPTH when the client doesn't specify one, so an
// unbounded traversal can never happen.
let max_depth = Some(
body.max_depth
.map_or(UInt::from(MAX_MAX_DEPTH), |max_depth| {
max_depth.min(UInt::from(MAX_MAX_DEPTH))
}),
);
let max_max_depth = UInt::from(MAX_MAX_DEPTH);
let max_depth = Some(body.max_depth.unwrap_or(max_max_depth).min(max_max_depth));
let hierarchy = services
.rooms