Skip to content

Commit

Permalink
Fix nightly clippy violation
Browse files Browse the repository at this point in the history
  • Loading branch information
TedDriggs committed Sep 11, 2024
1 parent be3795e commit 0a163af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion derive_builder_core/src/initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl<'a> ToTokens for Initializer<'a> {

impl<'a> Initializer<'a> {
/// To be used inside of `#struct_field: match self.#builder_field { ... }`
fn match_some(&'a self) -> MatchSome {
fn match_some(&'a self) -> MatchSome<'a> {
match self.builder_pattern {
BuilderPattern::Owned => MatchSome::Move,
BuilderPattern::Mutable | BuilderPattern::Immutable => MatchSome::Clone {
Expand Down

0 comments on commit 0a163af

Please sign in to comment.