From cea28cd28452d09b15ad489292389e9533b352c9 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Wed, 8 Jan 2025 20:50:28 +0100 Subject: [PATCH] chore: allow some linting issues in tests --- src/checks/osb.rs | 1 + src/model/form.rs | 2 ++ src/profile.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/src/checks/osb.rs b/src/checks/osb.rs index f1c3597..58a9a79 100644 --- a/src/checks/osb.rs +++ b/src/checks/osb.rs @@ -50,6 +50,7 @@ pub fn check_file(file: &Path, password: &str) -> Result, Check let mut result = vec![]; + #[allow(clippy::unwrap_used)] let progress_bar = ProgressBar::new(archive.len() as u64).with_style( ProgressStyle::default_bar() .template("{wide_bar} {msg:32} {pos}/{len}") diff --git a/src/model/form.rs b/src/model/form.rs index 0261616..15966bf 100644 --- a/src/model/form.rs +++ b/src/model/form.rs @@ -506,6 +506,8 @@ pub struct DataFormEntries { entry_name: Option>, } +#[allow(clippy::unwrap_used)] +#[allow(clippy::panic)] #[cfg(test)] mod tests { use std::str::FromStr; diff --git a/src/profile.rs b/src/profile.rs index f83ab71..9e7d33f 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -112,6 +112,7 @@ pub struct MenuCategory { pub column: String, } +#[allow(clippy::panic)] #[cfg(test)] mod tests { use crate::profile::{Profile, WithScriptsCode};