clippy
This commit is contained in:
parent
f4c5c73073
commit
6cf330cfa7
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ impl APL for FileApl {
|
||||||
let mut auths: FileStructure;
|
let mut auths: FileStructure;
|
||||||
match path.is_file() {
|
match path.is_file() {
|
||||||
true => auths = serde_json::from_str(&std::fs::read_to_string(path)?)?,
|
true => auths = serde_json::from_str(&std::fs::read_to_string(path)?)?,
|
||||||
false => auths = FileStructure { 0: HashMap::new() },
|
false => auths = FileStructure(HashMap::new()),
|
||||||
}
|
}
|
||||||
|
|
||||||
auths.insert(auth_data.saleor_api_url.clone(), auth_data);
|
auths.insert(auth_data.saleor_api_url.clone(), auth_data);
|
||||||
|
|
Loading…
Reference in a new issue