Skip to content

Commit

Permalink
Merge pull request #119 from artichoke/lopopolo/clippy-panic-expect
Browse files Browse the repository at this point in the history
Suppress `clippy::should_panic_without_expect` lint violations
  • Loading branch information
lopopolo authored Nov 29, 2023
2 parents d7db71c + 314c061 commit 4498852
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ GEM

PLATFORMS
ruby
x64-mingw-ucrt

DEPENDENCIES
bundler-audit (~> 0.9)
Expand Down
1 change: 1 addition & 0 deletions src/format/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub(crate) const fn assert_to_ascii_uppercase(table: &[&str], upper_table: &[&st
}

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

Expand Down
2 changes: 2 additions & 0 deletions src/tests/format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::should_panic_without_expect)]

use crate::format::TimeFormatter;
use crate::{Error, Time};

Expand Down

0 comments on commit 4498852

Please sign in to comment.