Make cargo fmt happy
This commit is contained in:
parent
d632ecafda
commit
37db9bf662
2 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue