Skip to content

Commit

Permalink
Make clippy happy => -D clippy::unwrap-or-default
Browse files Browse the repository at this point in the history
  • Loading branch information
snawaz committed Oct 19, 2023
1 parent 679537d commit b74767b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/syn/src/idl/parse/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub fn parse(
.map(|a| a.ident.to_string())
.collect::<HashSet<_>>();

let error_name = error.map(|e| e.name).unwrap_or_else(|| "".to_string());
let error_name = error.map(|e| e.name).unwrap_or_default();

// All types that aren't in the accounts section, are in the types section.
for ty_def in ty_defs {
Expand Down

0 comments on commit b74767b

Please sign in to comment.