Skip to content

Commit b1e45d1

Browse files
committed
Fix should_panic_without_expect pedantic clippy lint
warning: #[should_panic] attribute without a reason --> tests/test.rs:789:1 | 789 | #[should_panic] | ^^^^^^^^^^^^^^^ help: consider specifying the expected panic: `#[should_panic(expected = /* panic message */)]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_panic_without_expect = note: `-W clippy::should-panic-without-expect` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::should_panic_without_expect)]`
1 parent 2ce28ad commit b1e45d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ fn test_invalidate_current_thread_spans() {
786786

787787
#[cfg(span_locations)]
788788
#[test]
789-
#[should_panic]
789+
#[should_panic(expected = "Invalid span with no related FileInfo!")]
790790
fn test_use_span_after_invalidation() {
791791
let span = create_span();
792792

0 commit comments

Comments
 (0)