]> git.lizzy.rs Git - rust.git/blobdiff - clippy_utils/src/sugg.rs
add eq constraints on associated constants
[rust.git] / clippy_utils / src / sugg.rs
index cedc16dea31fb1b7ff919772865a9a149980b0de..563edd32d25185fb3918e344cfe7680760a64a4d 100644 (file)
@@ -459,7 +459,7 @@ fn neg(self) -> Sugg<'static> {
     }
 }
 
-impl Not for Sugg<'a> {
+impl<'a> Not for Sugg<'a> {
     type Output = Sugg<'a>;
     fn not(self) -> Sugg<'a> {
         use AssocOp::{Equal, Greater, GreaterEqual, Less, LessEqual, NotEqual};
@@ -844,7 +844,7 @@ struct DerefDelegate<'a, 'tcx> {
     applicability: Applicability,
 }
 
-impl DerefDelegate<'_, 'tcx> {
+impl<'tcx> DerefDelegate<'_, 'tcx> {
     /// build final suggestion:
     /// - create the ending part of suggestion
     /// - concatenate starting and ending parts