Skip to content

Commit 3d55076

Browse files
committed
cargo fmt
1 parent d95c606 commit 3d55076

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

examples/puffin.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// you can test this with:
33
// cargo run --example puffin --features puffin
44

5-
65
use eframe::NativeOptions;
76
use puffin_egui::puffin;
87

@@ -41,11 +40,11 @@ impl eframe::App for MyApp {
4140
log::warn!("Warn about something")
4241
}
4342
if ui.button("This produces 1000 Warnings").clicked() {
44-
(1..1000).for_each(|x| log::warn!("Warn: {}",x));
43+
(1..1000).for_each(|x| log::warn!("Warn: {}", x));
4544
log::warn!("Warn about something")
4645
}
4746
if ui.button("This produces 100_000 Warnings").clicked() {
48-
(1..100_000).for_each(|x| log::warn!("Warn: {}",x));
47+
(1..100_000).for_each(|x| log::warn!("Warn: {}", x));
4948
log::warn!("Warn about something")
5049
}
5150
});

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ impl log::Log for EguiLogger {
9494
}
9595

9696
fn log(&self, record: &log::Record) {
97-
#[cfg(feature = "puffin")]
98-
puffin::profile_scope!("Lock Mutex");
9997
if self.enabled(record.metadata()) {
10098
if let Ok(ref mut logger) = LOGGER.lock() {
10199
logger.logs.push(Record {

0 commit comments

Comments
 (0)