Skip to content

Commit 5a359a1

Browse files
committed
fixup linter issues, improve docs
1 parent 448aed8 commit 5a359a1

File tree

4 files changed

+50
-262
lines changed

4 files changed

+50
-262
lines changed

clippy.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
doc-valid-idents = [
2+
"CRuby",
3+
".."
4+
]

src/tests/format.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(clippy::should_panic_without_expect)]
2-
31
use crate::format::TimeFormatter;
42
use crate::Error;
53

src/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn check_all(times: &[MockTime<'_>], format: &str, all_expected: &[&str]) {
3939
}
4040

4141
#[test]
42-
#[should_panic]
42+
#[should_panic = "assertion `left == right` failed"]
4343
#[rustfmt::skip]
4444
fn test_check_format_panics_on_error() {
4545
let time = MockTime { year: 1111, ..Default::default() };
@@ -48,7 +48,7 @@ fn test_check_format_panics_on_error() {
4848
}
4949

5050
#[test]
51-
#[should_panic]
51+
#[should_panic = "assertion `left == right` failed"]
5252
#[rustfmt::skip]
5353
fn test_check_all_panics_on_error() {
5454
let times = [

0 commit comments

Comments
 (0)