diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-10-02 18:51:01 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-10-02 19:38:19 -0500 |
| commit | e165c129324c48a54d321b2dd77e2ff4c7ee9739 (patch) | |
| tree | 5e61755ae5b692c1e5ce69f0c5d99e3a63325831 /clippy_lints/src/inherent_to_string.rs | |
| parent | 2cb37a19110be1f80133a336acae2072ea8e310d (diff) | |
| download | rust-e165c129324c48a54d321b2dd77e2ff4c7ee9739.tar.gz rust-e165c129324c48a54d321b2dd77e2ff4c7ee9739.zip | |
Make diangostic item names consistent
Diffstat (limited to 'clippy_lints/src/inherent_to_string.rs')
| -rw-r--r-- | clippy_lints/src/inherent_to_string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/inherent_to_string.rs b/clippy_lints/src/inherent_to_string.rs index b62fad4bd39..3c40ca50a09 100644 --- a/clippy_lints/src/inherent_to_string.rs +++ b/clippy_lints/src/inherent_to_string.rs @@ -111,7 +111,7 @@ impl<'tcx> LateLintPass<'tcx> for InherentToString { if impl_item.generics.params.is_empty(); // Check if return type is String - if is_type_diagnostic_item(cx, return_ty(cx, impl_item.hir_id()), sym::string_type); + if is_type_diagnostic_item(cx, return_ty(cx, impl_item.hir_id()), sym::String); // Filters instances of to_string which are required by a trait if trait_ref_of_method(cx, impl_item.hir_id()).is_none(); |
