mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -320,7 +320,7 @@ impl<'db, 'sema> Matcher<'db, 'sema> {
|
|||
kind.matches(code)?;
|
||||
}
|
||||
Constraint::Not(sub) => {
|
||||
if self.check_constraint(&*sub, code).is_ok() {
|
||||
if self.check_constraint(sub, code).is_ok() {
|
||||
fail_match!("Constraint {:?} failed for '{}'", constraint, code.text());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue