From 39b926198159cc4b83ab36951903fd4c0fb0cbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Fri, 27 Sep 2024 04:46:32 +0300 Subject: [PATCH 1/2] kem: fix Clippy lint --- kem/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kem/src/lib.rs b/kem/src/lib.rs index 27dc0aa19..dc009d077 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -23,9 +23,10 @@ pub trait Encapsulate { fn encapsulate(&self, rng: &mut impl CryptoRngCore) -> Result<(EK, SS), Self::Error>; } -/// A value that can be used to decapsulate an encapsulated key. Often, this will just be a secret -/// key. But, as with [`Encapsulate`], it can be a bundle of secret keys, or it can include a -/// sender's private key for authenticated encapsulation. +/// A value that can be used to decapsulate an encapsulated key. +/// +/// Often, this will just be a secret key. But, as with [`Encapsulate`], it can be a bundle +/// of secret keys, or it can include a sender's private key for authenticated encapsulation. pub trait Decapsulate { /// Decapsulation error type Error: Debug; From 95f48a9a228af022db11a94137f921e9156c80a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Fri, 27 Sep 2024 04:47:40 +0300 Subject: [PATCH 2/2] Bump Clippy to 1.81 --- .github/workflows/workspace.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index d67061ca5..f64f6bf99 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -24,7 +24,7 @@ jobs: - uses: RustCrypto/actions/cargo-cache@master - uses: dtolnay/rust-toolchain@master with: - toolchain: 1.79.0 + toolchain: 1.81.0 components: clippy - run: cargo clippy --all --all-features --tests -- -D warnings