From 0385946ce78e071282edf4d3de659735c0ba4db6 Mon Sep 17 00:00:00 2001 From: Diogo Matsubara Date: Wed, 11 Dec 2024 17:27:20 +0100 Subject: [PATCH] fix: remove redundant closure (#68) --- zenoh-plugin-remote-api/src/handle_control_message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenoh-plugin-remote-api/src/handle_control_message.rs b/zenoh-plugin-remote-api/src/handle_control_message.rs index 422b6e5..8b24acd 100644 --- a/zenoh-plugin-remote-api/src/handle_control_message.rs +++ b/zenoh-plugin-remote-api/src/handle_control_message.rs @@ -348,7 +348,7 @@ pub(crate) async fn handle_control_message( express, } => { let mut querier_builder = state_map.session.declare_querier(key_expr); - let timeout = timeout.map(|millis| Duration::from_millis(millis)); + let timeout = timeout.map(Duration::from_millis); add_if_some!(target, querier_builder); add_if_some!(timeout, querier_builder);