diff --git a/zenoh/src/session.rs b/zenoh/src/session.rs index 7cd495d378..5d508db815 100644 --- a/zenoh/src/session.rs +++ b/zenoh/src/session.rs @@ -774,13 +774,13 @@ impl Session { /// } /// # } /// ``` - pub fn get<'a, 'b: 'a, IntoSelector>( + pub fn get<'a, 'b: 'a, TryIntoSelector>( &'a self, - selector: IntoSelector, + selector: TryIntoSelector, ) -> GetBuilder<'a, 'b, DefaultHandler> where - IntoSelector: TryInto>, - >>::Error: Into, + TryIntoSelector: TryInto>, + >>::Error: Into, { let selector = selector.try_into().map_err(Into::into); let timeout = {