Skip to content

Commit

Permalink
accept unwraps/expects in test modules (for now)
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Mar 14, 2024
1 parent 4e2e388 commit 21e7b30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/core/src/chunker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ fn qp(p: i32, g: Polynom64) -> Polynom64 {
}

#[cfg(test)]
#[allow(clippy::unwrap_used, clippy::expect_used)]
mod tests {
use super::*;
use std::io::{repeat, Cursor};
Expand Down
1 change: 1 addition & 0 deletions crates/core/src/crypto/aespoly1305.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ impl CryptoKey for Key {
}

#[cfg(test)]
#[allow(clippy::unwrap_used, clippy::expect_used)]
mod tests {
use super::*;

Expand Down
1 change: 1 addition & 0 deletions crates/core/src/index/binarysorted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ impl ReadIndex for Index {
}

#[cfg(test)]
#[allow(clippy::unwrap_used, clippy::expect_used)]
mod tests {
use super::*;
use crate::{repofile::indexfile::IndexFile, RusticResult};
Expand Down

0 comments on commit 21e7b30

Please sign in to comment.