From 76a86f029566c51ba19881bccb5fba33fecec4fb Mon Sep 17 00:00:00 2001 From: David Nevado Date: Mon, 8 Jan 2024 10:24:39 +0100 Subject: [PATCH] Fix clippy --- halo2_proofs/src/plonk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/halo2_proofs/src/plonk.rs b/halo2_proofs/src/plonk.rs index 1a8acf44ba..78bfc21501 100644 --- a/halo2_proofs/src/plonk.rs +++ b/halo2_proofs/src/plonk.rs @@ -80,7 +80,7 @@ where // Version byte that will be checked on read. writer.write_all(&[VERSION])?; let k = &self.domain.k(); - assert!(*k <= C::Scalar::S as u32); + assert!(*k <= C::Scalar::S); // k value fits in 1 byte writer.write_all(&[*k as u8])?; writer.write_all(&[self.compress_selectors as u8])?;