Skip to content

Commit

Permalink
update: remove clone from bench
Browse files Browse the repository at this point in the history
  • Loading branch information
GoranBrkuljan committed Jan 20, 2025
1 parent 53ba470 commit be9ebdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charybdis_bench/benches/orm_vs_native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ fn bench_orm_vs_native(c: &mut Criterion) {
c.bench_function("ORM Insert", |b| {
b.iter(|| {
rt.block_on(async {
test_user.clone().insert().execute(&session).await.unwrap();
test_user.insert().execute(&session).await.unwrap();
});
});
});
Expand Down Expand Up @@ -360,7 +360,7 @@ fn bench_orm_vs_native(c: &mut Criterion) {
c.bench_function("ORM Delete", |b| {
b.iter(|| {
rt.block_on(async {
test_user.clone().delete().execute(&session).await.unwrap();
test_user.delete().execute(&session).await.unwrap();
});
});
});
Expand Down

0 comments on commit be9ebdf

Please sign in to comment.