Skip to content

Commit

Permalink
linux clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Mar 13, 2024
1 parent 99c8ac9 commit d8e1940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/linux/statics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub(super) static O_PATH_MAYBE: Lazy<OFlags> = Lazy::new(|| {

// for 2.6.39 <= kernel < 3.6 fstat doesn't support O_PATH see https://github.com/eminence/procfs/issues/265
match kernel {
Some(v) if v < String::from("3.6.0") => OFlags::empty(),
Some(v) if v.as_str() < "3.6.0" => OFlags::empty(),
Some(_) | None => OFlags::PATH,
}
});

0 comments on commit d8e1940

Please sign in to comment.