Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Jan 15, 2022
1 parent 3b13234 commit 8cc2fc7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ impl Config {
}
Ok(all_providers)
}
pub fn write(
&self,
providers: Vec<ProviderSource>,
config_path: &Path,
) -> anyhow::Result<()> {
pub fn write(&self, providers: Vec<ProviderSource>, config_path: &Path) -> anyhow::Result<()> {
let toml = toml::to_string(&ConfigContents { providers })?;
fs::write(config_path, toml)
.with_context(|| format!("Error writing to file {}", config_path.display()))?;
Expand Down

0 comments on commit 8cc2fc7

Please sign in to comment.