Renamed write to write_toml in the config
This commit is contained in:
@@ -10,7 +10,7 @@ pub(crate) struct SideNodeConfig {
|
|||||||
pub(crate) name: String,
|
pub(crate) name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn write(
|
pub(crate) fn write_toml(
|
||||||
config: &SideNodeConfig,
|
config: &SideNodeConfig,
|
||||||
file_path: &PathBuf,
|
file_path: &PathBuf,
|
||||||
) -> Result<(), Box<dyn std::error::Error>> {
|
) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ pub(crate) fn init(home: PathBuf, config: SideNodeConfig) -> Result<(), std::io:
|
|||||||
keys::write(key_path)?;
|
keys::write(key_path)?;
|
||||||
|
|
||||||
println!("Writing config to: {:?}", config_path);
|
println!("Writing config to: {:?}", config_path);
|
||||||
config::write(&config, &config_path).expect("unable to write config file");
|
config::write_toml(&config, &config_path).expect("unable to write config file");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user