Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
mentaljam committed Aug 3, 2023
1 parent 3c56310 commit 7d37b1e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ impl StandardPaths {
_ => {
let user = match nix::unistd::User::from_uid(uid) {
Ok(opt) => opt.unwrap(),
Err(err) => return Err(Error::new(
ErrorKind::NotFound,
format!("Failed to detect current user: {err}"),
))
Err(err) => {
return Err(Error::new(
ErrorKind::NotFound,
format!("Failed to detect current user: {err}"),
))
}
};
let mut runtime_dir = String::from("runtime-");
runtime_dir.push_str(&user.name);
Expand Down

0 comments on commit 7d37b1e

Please sign in to comment.