File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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" ) ) ]
Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ pub struct FsUsage {
552552
553553impl 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" ) ) ,
You can’t perform that action at this time.
0 commit comments