]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/return_self_not_must_use.rs
modify code
[rust.git] / clippy_lints / src / return_self_not_must_use.rs
index 935bbc37d75d0bb77f8000a5951fbdf30d3d7319..79f104eac0be24c9e5b55e719021af891613471a 100644 (file)
     /// ```
     #[clippy::version = "1.59.0"]
     pub RETURN_SELF_NOT_MUST_USE,
-    suspicious,
+    pedantic,
     "missing `#[must_use]` annotation on a method returning `Self`"
 }
 
 declare_lint_pass!(ReturnSelfNotMustUse => [RETURN_SELF_NOT_MUST_USE]);
 
-fn check_method(cx: &LateContext<'tcx>, decl: &'tcx FnDecl<'tcx>, fn_def: LocalDefId, span: Span, hir_id: HirId) {
+fn check_method(cx: &LateContext<'_>, decl: &FnDecl<'_>, fn_def: LocalDefId, span: Span, hir_id: HirId) {
     if_chain! {
         // If it comes from an external macro, better ignore it.
         if !in_external_macro(cx.sess(), span);