Apply clippy suggestions for 1.67

This commit is contained in:
Dirkjan Ochtman 2023-01-27 10:12:56 +01:00
parent f53d2882bd
commit 77e435ca01
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ impl Key {
None => String::new(), None => String::new(),
}; };
let combined = format!("{}.{}", protected, payload); let combined = format!("{protected}.{payload}");
let signature = self.inner.sign(&self.rng, combined.as_bytes())?; let signature = self.inner.sign(&self.rng, combined.as_bytes())?;
Ok(Body::from(serde_json::to_vec(&JoseJson { Ok(Body::from(serde_json::to_vec(&JoseJson {
protected, protected,