Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
weilzkm committed Oct 22, 2024
1 parent f1ba81b commit c20e376
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions prover/src/cpu/kernel/assembler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ impl Kernel {

/// Read public input from input stream index 0
pub fn read_public_inputs(&self) -> Vec<u8> {
if let Some(first) = self.program.input_stream.get(0) {
// let input = bincode::deserialize::<Vec<u8>>(first).expect("deserialization failed");
let input = first.to_vec();
input
if let Some(first) = self.program.input_stream.first() {
// bincode::deserialize::<Vec<u8>>(first).expect("deserialization failed")
first.to_vec()
} else {
vec![]
}
Expand Down

0 comments on commit c20e376

Please sign in to comment.