Skip to content

Commit

Permalink
Make cargo fmt happy
Browse files Browse the repository at this point in the history
  • Loading branch information
runebaas committed Jan 24, 2024
1 parent d632eca commit 37db9bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ fn main() {

// reveal the cookie
if options.show_cookie {
let cookie_file = Path::new(&cookie.name).file_name().unwrap().to_str().unwrap();
let cookie_file = Path::new(&cookie.name)
.file_name()
.unwrap()
.to_str()
.unwrap();
println!("({})\n%", cookie_file);
}

Expand Down
6 changes: 5 additions & 1 deletion src/utils/fortunes_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ fn get_paths() -> Vec<String> {

#[cfg(unix)]
fn get_paths() -> Vec<String> {
own_vec(vec!["./fortunes", "/usr/share/fortune", "/usr/share/games/fortunes"])
own_vec(vec![
"./fortunes",
"/usr/share/fortune",
"/usr/share/games/fortunes",
])
}

pub struct Cookie {
Expand Down

0 comments on commit 37db9bf

Please sign in to comment.