Skip to content

Commit

Permalink
crossroads: Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
diwic committed Mar 9, 2024
1 parent 52105f9 commit a36c4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbus-crossroads/src/ifacedesc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl<T: Send, A: Send + arg::RefArg + arg::Arg + arg::Append> PropBuilder<'_, T,
})
}

pub (crate) fn get_custom<CB>(mut self, mut cb: CB) -> Self
pub (crate) fn get_custom<CB>(self, mut cb: CB) -> Self
where CB: FnMut(PropContext, &mut Crossroads) -> Option<PropContext> + Send + 'static {
self.desc.get_cb = Some(Dbg(Box::new(move |ctx, cr| {
cb(ctx, cr)
Expand Down Expand Up @@ -410,7 +410,7 @@ impl<T: Send, A: arg::RefArg + Send + for<'x> arg::Get<'x> + arg::Arg + arg::App
})
}

pub fn set_custom<CB>(mut self, mut cb: CB) -> Self
pub fn set_custom<CB>(self, mut cb: CB) -> Self
where CB: FnMut(PropContext, &mut Crossroads, A) -> Option<PropContext> + Send + 'static {
self.desc.set_cb = Some(Dbg(Box::new(move |mut ctx, cr| {
match ctx.check(|ctx| {
Expand Down

0 comments on commit a36c4a7

Please sign in to comment.