Fix new_lint clippy command
This commit is contained in:
parent
30e9cd5a26
commit
7bfb15cd11
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue