Skip to content

Commit

Permalink
Clippy: fix the new box_default lint
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Oct 18, 2022
1 parent e8ab4b9 commit 8a7aaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mockall/tests/automock_boxed_constructor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ pub trait A {
#[test]
fn returning() {
let ctx = MockA::new_context();
ctx.expect().returning(|| Box::new(MockA::default()));
ctx.expect().returning(Box::default);
let _a: Box<MockA> = <MockA as A>::new();
}

0 comments on commit 8a7aaf9

Please sign in to comment.