File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -387,8 +387,7 @@ fn get_targets_root_only(
387
387
. unwrap_or_default ( )
388
388
== current_dir_manifest
389
389
} )
390
- . map ( |p| p. targets )
391
- . flatten ( )
390
+ . flat_map ( |p| p. targets )
392
391
. collect ( ) ,
393
392
} ;
394
393
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ impl<'a> FormatReportFormatterBuilder<'a> {
20
20
}
21
21
22
22
/// Enables colors and formatting in the output.
23
+ #[ must_use]
23
24
pub fn enable_colors ( self , enable_colors : bool ) -> Self {
24
25
Self {
25
26
enable_colors,
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ pub(crate) fn rewrite_macro(
152
152
) -> Option < String > {
153
153
let should_skip = context
154
154
. skip_context
155
- . skip_macro ( & context. snippet ( mac. path . span ) . to_owned ( ) ) ;
155
+ . skip_macro ( context. snippet ( mac. path . span ) ) ;
156
156
if should_skip {
157
157
None
158
158
} else {
You can’t perform that action at this time.
0 commit comments