Skip to content

Commit

Permalink
Fix clippy warnings for linux (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
mentaljam authored May 3, 2023
1 parent 2af1ce1 commit 0090ecc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ impl StandardPaths {
return Err(Error::new(
ErrorKind::Other,
format!(
"'XDG_RUNTIME_DIR' points to '{}' which is not a directory",
path
"'XDG_RUNTIME_DIR' points to '{path}' which is not a directory"
),
));
}
Expand Down Expand Up @@ -281,7 +280,7 @@ where
P: Into<PathBuf>,
{
let path = path.into();
match fs::metadata(&path) {
match fs::metadata(path) {
Ok(md) => md.permissions().mode() & 0o111 != 0,
_ => false,
}
Expand Down

0 comments on commit 0090ecc

Please sign in to comment.