Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-richter committed Aug 19, 2024
2 parents 81a6abd + be4b1e1 commit a44610f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ impl CloudManagerConfig {
///
/// * `path` - String slice that holds the path to the JSON config file
pub fn from_file(path: &str) -> Self {
let data = fs::read_to_string(path).unwrap_or_else(|_| panic!("Unable to find config at path {}", path));
let data = fs::read_to_string(path)
.unwrap_or_else(|_| panic!("Unable to find config at path {}", path));
let config: Self = serde_json::from_str(data.as_str()).expect("Invalid JSON format");
config
}
Expand Down

0 comments on commit a44610f

Please sign in to comment.