server: push: fix needless borrow clippy warning

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2024-11-21 16:43:34 +01:00 committed by Fabian Grünbichler
parent cc6fc6a540
commit ffd52fbeeb

View File

@ -422,7 +422,7 @@ pub(crate) async fn push_store(mut params: PushParameters) -> Result<SyncStats,
params params
.target .target
.ns .ns
.contains(&target_namespace) .contains(target_namespace)
.map(|sub_depth| sub_depth <= max_depth) .map(|sub_depth| sub_depth <= max_depth)
.unwrap_or(false) .unwrap_or(false)
}) })