clippy fix
This commit is contained in:
parent
528a391132
commit
522b2cad31
2 changed files with 2 additions and 3 deletions
|
@ -29,7 +29,7 @@ impl APL for FileApl {
|
|||
auths.insert(auth_data.saleor_api_url.clone(), auth_data);
|
||||
|
||||
debug!("writing to {:?}", &path);
|
||||
std::fs::write(path, &serde_json::to_string_pretty(&auths)?.as_bytes())?;
|
||||
std::fs::write(path, serde_json::to_string_pretty(&auths)?.as_bytes())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ impl APL for FileApl {
|
|||
auths.remove(saleor_api_url);
|
||||
|
||||
debug!("writing to {:?}", &path);
|
||||
std::fs::write(path, &serde_json::to_string_pretty(&auths)?.as_bytes())?;
|
||||
std::fs::write(path, serde_json::to_string_pretty(&auths)?.as_bytes())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ pub mod manifest;
|
|||
pub mod middleware;
|
||||
pub mod webhooks;
|
||||
|
||||
use anyhow::bail;
|
||||
use apl::{AplType, APL};
|
||||
use config::Config;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
|
Loading…
Reference in a new issue