diff --git a/sdk/src/apl/file_apl.rs b/sdk/src/apl/file_apl.rs index 4d20a30..e9b1be1 100644 --- a/sdk/src/apl/file_apl.rs +++ b/sdk/src/apl/file_apl.rs @@ -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(()) } diff --git a/sdk/src/lib.rs b/sdk/src/lib.rs index af09012..973c893 100644 --- a/sdk/src/lib.rs +++ b/sdk/src/lib.rs @@ -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};