We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 563fc12 commit 92e64e4Copy full SHA for 92e64e4
clippy.toml
@@ -0,0 +1 @@
1
+msrv = "1.70.0"
src/prop_name.rs
@@ -310,13 +310,13 @@ fn sanity_checks() {
310
}
311
312
#[test]
313
-#[should_panic]
+#[should_panic(expected = "input contained interior nul byte")]
314
fn test_interior_nul() {
315
PropName::new_unwrap("interior nul\0\0");
316
317
318
319
+#[should_panic(expected = "input was not nul-terminated")]
320
fn test_non_nul_terminated() {
321
PropName::new_unwrap("no nul terminator");
322
0 commit comments