diff --git a/zenoh/tests/matching.rs b/zenoh/tests/matching.rs index 5aefc135a9..b93588e278 100644 --- a/zenoh/tests/matching.rs +++ b/zenoh/tests/matching.rs @@ -39,7 +39,7 @@ async fn create_session_pair(locator: &str) -> Result<(Session, Session)> { .unwrap(); config }; - let config2 = zenoh::config::client([Locator::from_str(&locator)?]); + let config2 = zenoh::config::client([Locator::from_str(locator)?]); let session1 = ztimeout!(zenoh::open(config1).res_async())?; let session2 = ztimeout!(zenoh::open(config2).res_async())?;