Fix dogfood errors
This commit is contained in:
parent
3af09b8cf1
commit
a6aa0acbea
5 changed files with 13 additions and 10 deletions
|
|
@ -372,7 +372,7 @@ impl LateLintPass<'_> for StringToString {
|
|||
if let ExprKind::MethodCall(path, _, args, _) = &expr.kind;
|
||||
if path.ident.name == sym!(to_string);
|
||||
let ty = cx.typeck_results().expr_ty(&args[0]);
|
||||
if is_type_diagnostic_item(cx, ty, sym!(string_type));
|
||||
if is_type_diagnostic_item(cx, ty, sym::string_type);
|
||||
then {
|
||||
span_lint_and_help(
|
||||
cx,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue