File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,6 @@ non_canonical_partial_ord_impl = "allow"
181
181
self_named_constructors = " allow"
182
182
too_many_arguments = " allow"
183
183
type_complexity = " allow"
184
- unnecessary_lazy_evaluations = " allow"
185
184
unnecessary_mut_passed = " allow"
186
185
useless_conversion = " allow"
187
186
useless_format = " allow"
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ enum PositionUsedAs {
166
166
}
167
167
use PositionUsedAs :: * ;
168
168
169
+ #[ allow( clippy:: unnecessary_lazy_evaluations) ]
169
170
pub ( crate ) fn parse (
170
171
s : & ast:: String ,
171
172
fmt_snippet : Option < String > ,
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ impl Attr {
230
230
)
231
231
)
232
232
} )
233
- . unwrap_or_else ( || tt. len ( ) ) ;
233
+ . unwrap_or ( tt. len ( ) ) ;
234
234
235
235
let ( path, input) = tt. split_at ( path_end) ;
236
236
let path = Interned :: new ( ModPath :: from_tt ( db, path) ?) ;
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ fn as_module_def_if_namespace_matches(
297
297
AssocItem :: TypeAlias ( it) => ( ModuleDef :: TypeAlias ( it) , Namespace :: Types ) ,
298
298
} ;
299
299
300
- ( ns. unwrap_or ( expected_ns) == expected_ns) . then ( || DocLinkDef :: ModuleDef ( def) )
300
+ ( ns. unwrap_or ( expected_ns) == expected_ns) . then_some ( DocLinkDef :: ModuleDef ( def) )
301
301
}
302
302
303
303
fn modpath_from_str ( link : & str ) -> Option < ModPath > {
You can’t perform that action at this time.
0 commit comments