We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8e45e commit 4697f3bCopy full SHA for 4697f3b
program/rust/build_utils.rs
@@ -28,10 +28,6 @@ impl UnwindSafe for DeriveAdderParserCallback<'_> {}
28
29
impl ParseCallbacks for DeriveAdderParserCallback<'_>{
30
fn add_derives(&self, _name: &str) -> Vec<String>{
31
- let traits = self.types_to_traits.get(_name);
32
- match traits{
33
- Some(trait_names)=>trait_names.to_vec(),
34
- None => vec![],
35
- }
+ self.types_to_traits.get(_name).unwrap_or(&Vec::<String>::new()).to_vec()
36
}
37
0 commit comments