Skip to content

Commit 92e64e4

Browse files
Congyuwangzaidoon1
authored andcommitted
add clippy msrv and some clippy fixes
1 parent 563fc12 commit 92e64e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clippy.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.70.0"

src/prop_name.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,13 @@ fn sanity_checks() {
310310
}
311311

312312
#[test]
313-
#[should_panic]
313+
#[should_panic(expected = "input contained interior nul byte")]
314314
fn test_interior_nul() {
315315
PropName::new_unwrap("interior nul\0\0");
316316
}
317317

318318
#[test]
319-
#[should_panic]
319+
#[should_panic(expected = "input was not nul-terminated")]
320320
fn test_non_nul_terminated() {
321321
PropName::new_unwrap("no nul terminator");
322322
}

0 commit comments

Comments
 (0)