Skip to content

Commit

Permalink
Clippy cleanup: redundant clone
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Mar 26, 2023
1 parent d6850e8 commit 3537651
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mockall_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1500,9 +1500,7 @@ mod merge_generics {
let wc1: WhereClause = parse2(quote!(where T: Default)).unwrap();
g1.where_clause = Some(wc1.clone());

let g2 = g1.clone();

let gm = super::merge_generics(&g1, &g2);
let gm = super::merge_generics(&g1, &g1);
let gm_wc = &gm.where_clause;

assert_eq!(quote!(#g1 #wc1).to_string(),
Expand Down

0 comments on commit 3537651

Please sign in to comment.