diff options
author | Canop <cano.petrole@gmail.com> | 2020-01-20 22:11:38 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-01-20 22:11:38 +0100 |
commit | ec5220711e02c63a4832f984ae788958b3133d18 (patch) | |
tree | 822dacfb3a6c34809291bbd37cac5c958691dc31 /src/shell_install/mod.rs | |
parent | 7ccda47e5044ec2b56b1b6deb4ecdd82eacae9ff (diff) |
minor code fmt changes
Diffstat (limited to 'src/shell_install/mod.rs')
-rw-r--r-- | src/shell_install/mod.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/shell_install/mod.rs b/src/shell_install/mod.rs index dbc0c38..0613c94 100644 --- a/src/shell_install/mod.rs +++ b/src/shell_install/mod.rs @@ -25,7 +25,7 @@ The function is either missing, old or badly installed. Can I install it now? [**Y** n] "#; -const MD_INSTALL_DONE : &str = r#" +const MD_INSTALL_DONE: &str = r#" The **br** function has been installed. You may have to restart your shell or source your shell init files. Afterwards, you should start broot with `br` in order to use its full power. @@ -128,7 +128,7 @@ impl ShellInstall { "bash" | "zsh" => println!("{}", bash::get_script()), "fish" => println!("{}", fish::get_script()), _ => { - return Err(ProgramError::UnknowShell{ + return Err(ProgramError::UnknowShell { shell: shell.to_string(), }); } @@ -196,7 +196,7 @@ impl ShellInstall { if !proceed { ShellInstallState::Refused.write_file()?; self.skin.print_text( - "**Installation cancelled**. If you change your mind, run `broot --install`." + "**Installation cancelled**. If you change your mind, run `broot --install`.", ); } Ok(proceed) @@ -211,7 +211,11 @@ impl ShellInstall { self.remove(&script_path)?; info!("Writing `br` shell function in `{:?}`", &script_path); let script_path_str = script_path.to_string_lossy(); - mad_print_inline!(&self.skin, "Writing *br* shell function in `$0`.\n", &script_path_str); + mad_print_inline!( + &self.skin, + "Writing *br* shell function in `$0`.\n", + &script_path_str + ); fs::create_dir_all(script_path.parent().unwrap())?; fs::write(&script_path, content)?; Ok(()) |