Skip to content

Commit

Permalink
fix: resolve cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych committed Jan 27, 2025
1 parent 27b8107 commit 5a315d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/bin/formats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub enum VerifierCircuitDataFormat {
impl VerifierCircuitDataFormat {
/// Decodes the verifier circuit data from the specified format.
pub fn decode(&self, vk_bytes: Vec<u8>, config: Plonky2Config) -> Result<Vk> {
let vk_bytes = match self {
let bytes = match self {
VerifierCircuitDataFormat::Bytes => vk_bytes,
VerifierCircuitDataFormat::Hex => {
let hex_str = vk_bytes.strip_prefix(b"0x").unwrap_or(&vk_bytes);
Expand All @@ -30,10 +30,7 @@ impl VerifierCircuitDataFormat {
}
};

Ok(Vk {
vk_bytes: bytes,
config,
})
Ok(Vk { bytes, config })
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/vk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ use crate::config::Plonky2Config;
use serde::{Deserialize, Serialize};
use serde_with::serde_as;

#[cfg(feature = "converter")]
use bincode;

#[cfg(feature = "std")]
extern crate std;
#[cfg(not(feature = "std"))]
Expand Down

0 comments on commit 5a315d5

Please sign in to comment.