diff --git a/src/modules/azure.rs b/src/modules/azure.rs index 77c7015985265..de99a48e43653 100644 --- a/src/modules/azure.rs +++ b/src/modules/azure.rs @@ -86,7 +86,7 @@ fn get_azure_profile_info(context: &Context) -> Option { } fn load_azure_profile(config_path: &PathBuf) -> Option { - 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::(sanitized_json_data) { Some(azure_profile)