Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 10, 2023
1 parent 084991f commit e576c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_derive/src/utils/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,5 @@ fn get_vec_ty(ty: &Type, vec_ty: Ty, vecvec_ty: Ty) -> Option<Ty> {

#[cfg(not(feature = "unstable-v5"))]
fn get_vec_ty(ty: &Type, vec_ty: Ty, _vecvec_ty: Ty) -> Option<Ty> {
is_generic_ty(ty, "Vec").then(|| vec_ty)
is_generic_ty(ty, "Vec").then_some(vec_ty)
}

0 comments on commit e576c65

Please sign in to comment.