Remove redundant [..]s
This commit is contained in:
parent
e6b883c74f
commit
15de4cbc4b
45 changed files with 123 additions and 127 deletions
|
@ -207,7 +207,7 @@ fn check_panic_str<'tcx>(
|
|||
arg: &'tcx hir::Expr<'tcx>,
|
||||
fmt: &str,
|
||||
) {
|
||||
if !fmt.contains(&['{', '}'][..]) {
|
||||
if !fmt.contains(&['{', '}']) {
|
||||
// No brace, no problem.
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue