@@ -17,7 +17,10 @@ pub fn config_file() -> PathBuf {
1717pub fn generate_config_file() -> bat::errors::Result<()> {
1818 let config_file = config_file();
1919 if config_file.exists() {
20− println!("A config file already exists at: {}", config_file.to_string_lossy());
20+ println!(
21+ "A config file already exists at: {}",
22+ config_file.to_string_lossy()
23+ );
2124
2225 print!("Overwrite? (y/N): ");
2326 io::stdout().flush()?;
@@ -31,7 +34,12 @@ pub fn generate_config_file() -> bat::errors::Result<()> {
3134 let config_dir = config_file.parent();
3235 match config_dir {
3336 Some(path) => fs::create_dir_all(path)?,
34− None => return Ok(Err(format!("Unable to write config file to: {}", config_file.to_string_lossy()))?),
37+ None => {
38+ return Ok(Err(format!(
39+ "Unable to write config file to: {}",
40+ config_file.to_string_lossy()
41+ ))?)
42+ }
3543 }
3644 }
3745
@@ -54,7 +62,10 @@ pub fn generate_config_file() -> bat::errors::Result<()> {
5462"#;
5563
5664 fs::write(&config_file, default_config)?;
57− println!("Success! Config file written to {}", config_file.to_string_lossy());
65+ println!(
66+ "Success! Config file written to {}",
67+ config_file.to_string_lossy()
68+ );
5869
5970 return Ok(());
6071}