mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Clippy fixes for benchmark
This commit is contained in:
@@ -50,7 +50,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
|
|||||||
|
|
||||||
{
|
{
|
||||||
let mut ctx = egui::CtxRef::default();
|
let mut ctx = egui::CtxRef::default();
|
||||||
ctx.begin_frame(raw_input.clone());
|
ctx.begin_frame(raw_input);
|
||||||
let mut ui = egui::Ui::__test();
|
let mut ui = egui::Ui::__test();
|
||||||
c.bench_function("label &str", |b| {
|
c.bench_function("label &str", |b| {
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
@@ -59,7 +59,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
|
|||||||
});
|
});
|
||||||
c.bench_function("label format!", |b| {
|
c.bench_function("label format!", |b| {
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
ui.label(format!("the quick brown fox jumps over the lazy dog"));
|
ui.label("the quick brown fox jumps over the lazy dog".to_owned());
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user