mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-26 03:45:04 +00:00
minor: fix typo
This commit is contained in:
parent
067e97d149
commit
3f5eead9e3
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ fn check_test_attrs(path: &Path, text: &str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let panic_rule =
|
let panic_rule =
|
||||||
"https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/style.md#panic";
|
"https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/style.md#should_panic";
|
||||||
let need_panic: &[&str] = &["test_utils/src/fixture.rs"];
|
let need_panic: &[&str] = &["test_utils/src/fixture.rs"];
|
||||||
if text.contains("#[should_panic") && !need_panic.iter().any(|p| path.ends_with(p)) {
|
if text.contains("#[should_panic") && !need_panic.iter().any(|p| path.ends_with(p)) {
|
||||||
panic!(
|
panic!(
|
||||||
|
|
Loading…
Reference in a new issue