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"
181181self_named_constructors = " allow"
182182too_many_arguments = " allow"
183183type_complexity = " allow"
184- unnecessary_lazy_evaluations = " allow"
185184unnecessary_mut_passed = " allow"
186185useless_conversion = " allow"
187186useless_format = " allow"
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ enum PositionUsedAs {
166166}
167167use PositionUsedAs :: * ;
168168
169+ #[ allow( clippy:: unnecessary_lazy_evaluations) ]
169170pub ( crate ) fn parse (
170171 s : & ast:: String ,
171172 fmt_snippet : Option < String > ,
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ impl Attr {
230230 )
231231 )
232232 } )
233- . unwrap_or_else ( || tt. len ( ) ) ;
233+ . unwrap_or ( tt. len ( ) ) ;
234234
235235 let ( path, input) = tt. split_at ( path_end) ;
236236 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(
297297 AssocItem :: TypeAlias ( it) => ( ModuleDef :: TypeAlias ( it) , Namespace :: Types ) ,
298298 } ;
299299
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) )
301301}
302302
303303fn modpath_from_str ( link : & str ) -> Option < ModPath > {
You can’t perform that action at this time.
0 commit comments