Make cargo fmt happy

This commit is contained in:
Daan Boerlage 2024-01-24 13:01:15 +08:00
parent d632ecafda
commit 37db9bf662
Signed by: daan
GPG key ID: FCE070E1E4956606
2 changed files with 10 additions and 2 deletions

View file

@ -97,7 +97,11 @@ fn main() {
// reveal the cookie // reveal the cookie
if options.show_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); println!("({})\n%", cookie_file);
} }

View file

@ -68,7 +68,11 @@ fn get_paths() -> Vec<String> {
#[cfg(unix)] #[cfg(unix)]
fn get_paths() -> Vec<String> { 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 { pub struct Cookie {