Skip to content

Commit 62ce872

Browse files
committed
a few more fixes
1 parent 9a0c29c commit 62ce872

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/uu/df/src/filesystem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl Filesystem {
135135
mount_info.mount_dir.clone()
136136
};
137137
#[cfg(unix)]
138-
let usage = FsUsage::new(statfs(&stat_path).ok()?);
138+
let usage = FsUsage::new(&statfs(&stat_path).ok()?);
139139
#[cfg(windows)]
140140
let usage = FsUsage::new(Path::new(&stat_path)).ok()?;
141141
Some(Self {

src/uucore/src/lib/features/entries.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ pub struct Passwd {
154154
pub user_access_class: Option<String>,
155155
/// AKA passwd.pw_change
156156
#[cfg(any(target_os = "freebsd", target_vendor = "apple"))]
157+
#[expect(clippy::struct_field_names)]
157158
pub passwd_change_time: time_t,
158159
/// AKA passwd.pw_expire
159160
#[cfg(any(target_os = "freebsd", target_vendor = "apple"))]

src/uucore/src/lib/features/fsext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ pub struct FsUsage {
552552

553553
impl FsUsage {
554554
#[cfg(unix)]
555-
pub fn new(statvfs: StatFs) -> Self {
555+
pub fn new(statvfs: &StatFs) -> Self {
556556
{
557557
#[cfg(all(
558558
not(any(target_os = "freebsd", target_os = "openbsd")),

0 commit comments

Comments
 (0)