Skip to content

Commit

Permalink
Fix clippy: Do not borrow here
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
  • Loading branch information
matthiasbeyer committed Sep 5, 2023
1 parent b1c1eb7 commit 962033f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ mod supported {
let mut drop = privdrop::PrivDrop::default();

if let Some(user) = self.user {
drop = drop.user(&user);
drop = drop.user(user);
}

if let Some(group) = self.group {
drop = drop.group(&group);
drop = drop.group(group);
}

#[cfg(feature = "chroot")]
{
if let Some(chroot) = self.chroot {
drop = drop.chroot(&chroot);
drop = drop.chroot(chroot);
}
}

Expand Down

0 comments on commit 962033f

Please sign in to comment.