Skip to content

Commit

Permalink
fix: migrate toml version
Browse files Browse the repository at this point in the history
Signed-off-by: AlexandreBrg <[email protected]>
  • Loading branch information
alexandrebrg committed Apr 10, 2023
1 parent e7eb189 commit 8884b74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riklet/src/cli/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ impl Configuration {
"Reading configuration from file {}",
path.display()
);
let contents = std::fs::read(path).map_err(ConfigurationError::Load)?;
let content = std::fs::read_to_string(path).map_err(ConfigurationError::Load)?;

toml::from_slice(&contents).map_err(ConfigurationError::Parse)
toml::from_str(&content).map_err(ConfigurationError::Parse)
}

/// Load the configuration file
Expand Down

0 comments on commit 8884b74

Please sign in to comment.