Skip to content

Commit

Permalink
address clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
snowsignal committed Oct 25, 2023
1 parent ccfade3 commit baf8c1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ fn get_decorators(attrs: &[syn::Attribute]) -> HashMap<SupportedLanguage, Vec<St
let decorators: Vec<String> = value.split(',').map(|s| s.trim().to_string()).collect();

// lastly, get the entry in the hashmap output and extend the value, or insert what we have already found
let decs = out.entry(SupportedLanguage::Swift).or_insert_with(Vec::new);
let decs = out.entry(SupportedLanguage::Swift).or_default();
decs.extend(decorators);
// Sorting so all the added decorators will be after the normal ([`String`], `Codable`) in alphabetical order
decs.sort_unstable();
Expand Down Expand Up @@ -710,7 +710,7 @@ fn is_skipped(attrs: &[syn::Attribute]) -> bool {
attrs.iter().any(|attr| {
get_serde_meta_items(attr)
.into_iter()
.chain(get_typeshare_meta_items(attr).into_iter())
.chain(get_typeshare_meta_items(attr))
.any(|arg| match arg {
NestedMeta::Meta(Meta::Path(path)) => {
if let Some(ident) = path.get_ident() {
Expand Down

0 comments on commit baf8c1a

Please sign in to comment.