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);