Fix latest clippy warnings (#830)

This commit is contained in:
Paolo Barbolini
2022-11-12 18:54:20 +01:00
committed by GitHub
parent c914a07379
commit dbf0e53c31
2 changed files with 2 additions and 2 deletions

View File

@@ -354,7 +354,7 @@ fn dkim_sign_fixed_time(message: &mut Message, dkim_config: &DkimConfig, timesta
.unwrap() .unwrap()
.as_secs(); .as_secs();
let headers = message.headers(); let headers = message.headers();
let body_hash = Sha256::digest(&dkim_canonicalize_body( let body_hash = Sha256::digest(dkim_canonicalize_body(
&message.body_raw(), &message.body_raw(),
dkim_config.canonicalization.body, dkim_config.canonicalization.body,
)); ));

View File

@@ -212,7 +212,7 @@ impl FileTransport {
let eml = fs::read(eml_file).map_err(error::io)?; let eml = fs::read(eml_file).map_err(error::io)?;
let json_file = self.path.join(format!("{}.json", email_id)); let json_file = self.path.join(format!("{}.json", email_id));
let json = fs::read(&json_file).map_err(error::io)?; let json = fs::read(json_file).map_err(error::io)?;
let envelope = serde_json::from_slice(&json).map_err(error::envelope)?; let envelope = serde_json::from_slice(&json).map_err(error::envelope)?;
Ok((envelope, eml)) Ok((envelope, eml))