From 9449a1ac8d0d4cef78a623c260b1d7d99919d988 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Wed, 8 Jan 2025 13:24:26 +0100 Subject: [PATCH] Make clippy happy for Rust 1.77 --- kimchi/src/precomputed_srs.rs | 1 + msm/src/precomputed_srs.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/kimchi/src/precomputed_srs.rs b/kimchi/src/precomputed_srs.rs index 7dd2347c0d..474f8b6544 100644 --- a/kimchi/src/precomputed_srs.rs +++ b/kimchi/src/precomputed_srs.rs @@ -185,6 +185,7 @@ mod tests { 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"); diff --git a/msm/src/precomputed_srs.rs b/msm/src/precomputed_srs.rs index f278914419..1491b9beee 100644 --- a/msm/src/precomputed_srs.rs +++ b/msm/src/precomputed_srs.rs @@ -89,6 +89,7 @@ fn create_and_store_srs_with_path( // 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");