Skip to content

Commit

Permalink
Correct generic name IntoSelector to TryIntoSelector in Session.get (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 authored Mar 29, 2024
1 parent 12584fa commit 9449c31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zenoh/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Selector<'b>>,
<IntoSelector as TryInto<Selector<'b>>>::Error: Into<zenoh_result::Error>,
TryIntoSelector: TryInto<Selector<'b>>,
<TryIntoSelector as TryInto<Selector<'b>>>::Error: Into<zenoh_result::Error>,
{
let selector = selector.try_into().map_err(Into::into);
let timeout = {
Expand Down

0 comments on commit 9449c31

Please sign in to comment.