Skip to content

Commit 22d2ce1

Browse files
author
Guillermo Bescos
committed
More efficient conversion
1 parent 1e619ee commit 22d2ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

program/rust/build_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl ParseCallbacks for DeriveAdderParserCallback<'_>{
1818
fn add_derives(&self, _name: &str) -> Vec<String>{
1919
let traits = self.types_to_traits.get(_name);
2020
match traits{
21-
Some(trait_names)=>trait_names.to_vec().iter().map(|s| s.to_string()).collect(),
21+
Some(trait_names)=>trait_names.iter().map(|s| s.to_string()).collect(),
2222
None => vec![],
2323
}
2424
}

0 commit comments

Comments
 (0)