1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 11:46:50 +00:00

chore: allow some linting issues in tests

This commit is contained in:
Paul-Christian Volkmer 2025-01-08 20:50:28 +01:00
parent b055146c8f
commit cea28cd284
3 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,7 @@ pub fn check_file(file: &Path, password: &str) -> Result<Vec<CheckNotice>, 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}")

View File

@ -506,6 +506,8 @@ pub struct DataFormEntries {
entry_name: Option<Vec<String>>,
}
#[allow(clippy::unwrap_used)]
#[allow(clippy::panic)]
#[cfg(test)]
mod tests {
use std::str::FromStr;

View File

@ -112,6 +112,7 @@ pub struct MenuCategory {
pub column: String,
}
#[allow(clippy::panic)]
#[cfg(test)]
mod tests {
use crate::profile::{Profile, WithScriptsCode};