Ignore str::len() in or_fun_call lint.
This commit is contained in:
parent
aca95aac7b
commit
45e775697e
4 changed files with 10 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ pub(super) fn check<'tcx>(
|
|||
let ty = cx.typeck_results().expr_ty(&args[0]).peel_refs();
|
||||
|
||||
match ty.kind() {
|
||||
ty::Slice(_) | ty::Array(_, _) => return,
|
||||
ty::Slice(_) | ty::Array(_, _) | ty::Str => return,
|
||||
_ => (),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue