mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
make clippy happy again
This commit is contained in:
1 parent
fb7a378d63
commit
a838d59cfc
1 file changed
+2
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user