Skip to content

Commit

Permalink
Cargo clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Sabatini authored and Ryan Sabatini committed Nov 14, 2022
1 parent b08ab4d commit 9a45f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/azure.rs
Expand Up @@ -86,7 +86,7 @@ fn get_azure_profile_info(context: &Context) -> Option<Subscription> {
}

fn load_azure_profile(config_path: &PathBuf) -> Option<AzureProfile> {
let json_data = fs::read_to_string(&config_path).ok()?;
let json_data = fs::read_to_string(config_path).ok()?;
let sanitized_json_data = json_data.strip_prefix('\u{feff}').unwrap_or(&json_data);
if let Ok(azure_profile) = serde_json::from_str::<AzureProfile>(sanitized_json_data) {
Some(azure_profile)
Expand Down

0 comments on commit 9a45f78

Please sign in to comment.