Skip to content

Commit

Permalink
Make clippy happy for Rust 1.77
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Jan 8, 2025
1 parent 0390c18 commit d776615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kimchi/src/precomputed_srs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ mod tests {
let srs_path = get_srs_path::<G>(srs_type);
if std::env::var("SRS_OVERWRITE").is_ok() {
let mut file = std::fs::OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(srs_path)
.expect("failed to open SRS file");
Expand Down
2 changes: 1 addition & 1 deletion msm/src/precomputed_srs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn create_and_store_srs_with_path(
std::fs::create_dir_all(srs_path.parent().unwrap()).unwrap();
// Open/create the file
let mut file = std::fs::OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(srs_path.clone())
.expect("failed to open SRS file");
Expand Down

0 comments on commit d776615

Please sign in to comment.