Skip to content

Commit c9d0010

Browse files
CopilotSteveL-MSFT
andcommitted
Fix clippy error: replace redundant closure with method reference
Co-authored-by: SteveL-MSFT <[email protected]>
1 parent 3e64dd8 commit c9d0010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc/src/subcommand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ fn list_functions(functions: &FunctionDispatcher, function_name: Option<&String>
709709
};
710710

711711
table.add_row(vec![
712-
function.category.iter().map(|c| c.to_string()).collect::<Vec<String>>().join(", "),
712+
function.category.iter().map(std::string::ToString::to_string).collect::<Vec<String>>().join(", "),
713713
function.name,
714714
function.min_args.to_string(),
715715
max_args,

0 commit comments

Comments
 (0)