clippy
This commit is contained in:
@@ -106,10 +106,12 @@ pub(crate) fn execute(args: &Init) {
|
||||
}
|
||||
|
||||
let config_save_location = config.default_location();
|
||||
config.save_to_default_location().expect(&format!(
|
||||
"Failed to save the config file to {}",
|
||||
config_save_location.display()
|
||||
));
|
||||
config.save_to_default_location().unwrap_or_else(|_| {
|
||||
panic!(
|
||||
"Failed to save the config file to {}",
|
||||
config_save_location.display()
|
||||
)
|
||||
});
|
||||
eprintln!(
|
||||
"Saved configuration file to {}",
|
||||
config_save_location.display()
|
||||
|
||||
@@ -242,7 +242,7 @@ async fn load_or_generate_base_config(
|
||||
return setup_new_client_config(None, client_id, service_provider).await;
|
||||
};
|
||||
|
||||
let expected_store_path = config_filepath_from_root(&storage_dir, &client_id.to_string());
|
||||
let expected_store_path = config_filepath_from_root(&storage_dir, &client_id);
|
||||
eprintln!(
|
||||
"attempting to load socks5 config from {}",
|
||||
expected_store_path.display()
|
||||
|
||||
Reference in New Issue
Block a user