Skip to content

Commit

Permalink
Fix clippy again
Browse files Browse the repository at this point in the history
  • Loading branch information
winderica committed Nov 26, 2024
1 parent 5a8cd2f commit cb25ec8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ use std::{fs, io};
mod settings;

fn create_or_open_then_write<T: AsRef<[u8]>>(path: &Path, content: &T) -> Result<(), io::Error> {
let mut file = fs::OpenOptions::new().create(true).write(true).open(path)?;
let mut file = fs::OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(path)?;
file.write_all(content.as_ref())
}

Expand Down
2 changes: 1 addition & 1 deletion frontends/src/circom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use ark_relations::r1cs::{ConstraintSynthesizer, ConstraintSystemRef, SynthesisE
use ark_std::fmt::Debug;
use folding_schemes::{frontend::FCircuit, utils::PathOrBin, Error};
use num_bigint::BigInt;
use std::fmt;
use std::rc::Rc;
use std::{fmt, usize};

pub mod utils;
use utils::CircomWrapper;
Expand Down

0 comments on commit cb25ec8

Please sign in to comment.