Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
djkato committed Jul 10, 2024
1 parent 528a391 commit 522b2ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sdk/src/apl/file_apl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down Expand Up @@ -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(())
}

Expand Down
1 change: 0 additions & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 522b2ca

Please sign in to comment.