Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Dec 6, 2024
1 parent 8a4906f commit b789f43
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ceno_host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ impl CenoStdin {
&mut self,
item: &impl for<'a> Serialize<HighSerializer<AlignedVec, ArenaHandle<'a>, Error>>,
) -> Result<(), Error> {
let bytes = to_bytes::<Error>(item)?;
self.write_slice(bytes);
Ok(())
to_bytes::<Error>(item).map(|bytes| self.write_slice(bytes))
}

pub fn finalise(&self) -> Vec<u32> {
Expand Down

0 comments on commit b789f43

Please sign in to comment.