Skip to content

Commit

Permalink
fixup! use unwrap_or_default()
Browse files Browse the repository at this point in the history
  • Loading branch information
kitlith committed Sep 13, 2023
1 parent 5f501fe commit 3071cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bilge-impl/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ pub(crate) fn generate_trait_where_clause<'a>(
};

Some(Cow::Owned(WhereClause {
where_token: existing_clause.map(|c| c.where_token).unwrap_or(<_>::default()),
where_token: existing_clause.map(|c| c.where_token).unwrap_or_default(),
predicates,
}))
}

0 comments on commit 3071cf9

Please sign in to comment.