Skip to content

Commit 072f523

Browse files
committed
Changed passing by value to passing by reference in Uid::is_root().
1 parent e5bdf79 commit 072f523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unistd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Uid {
3636
geteuid()
3737
}
3838

39-
pub fn is_root(self) -> bool {
39+
pub fn is_root(&self) -> bool {
4040
self.0 == 0
4141
}
4242
}

0 commit comments

Comments
 (0)