diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-04-17 16:31:48 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-04-17 16:31:56 +0200 |
| commit | 7bfb15cd11d21c0edf0d60fb8419f0736e10937f (patch) | |
| tree | 7c3cdcb22145d52e3a6de722ee4086eea8d89b09 | |
| parent | 30e9cd5a260969786802b864380b642db6e7bf8a (diff) | |
| download | rust-7bfb15cd11d21c0edf0d60fb8419f0736e10937f.tar.gz rust-7bfb15cd11d21c0edf0d60fb8419f0736e10937f.zip | |
Fix `new_lint` clippy command
| -rw-r--r-- | clippy_dev/src/new_lint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_dev/src/new_lint.rs b/clippy_dev/src/new_lint.rs index 96e12706c9e..771f48b3f8b 100644 --- a/clippy_dev/src/new_lint.rs +++ b/clippy_dev/src/new_lint.rs @@ -448,7 +448,7 @@ fn setup_mod_file(path: &Path, lint: &LintData<'_>) -> io::Result<&'static str> let mut file_contents = fs::read_to_string(path)?; assert!( - !file_contents.contains(&lint_name_upper), + !file_contents.contains(&format!("pub {lint_name_upper},")), "Lint `{}` already defined in `{}`", lint.name, path.display() |
