Skip to content

Commit e879656

Browse files
committed
Fixed -.-
1 parent 00ba7dc commit e879656

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/trace.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
//! Compiles to no-ops unless the `trace` feature is enabled.
33
#![cfg_attr(all(feature = "trace", not(feature = "metrics")), allow(dead_code))]
44

5-
#[inline(always)]
5+
#[inline]
66
#[cfg(feature = "trace")]
77
pub(crate) fn record_event(name: &str, duration_ns: u64) {
88
// Lightweight hook: use eprintln! to avoid external deps.
99
// Users can redirect stderr if desired.
10-
eprintln!("benchmark::trace name={} ns={}", name, duration_ns);
10+
eprintln!("benchmark::trace name={name} ns={duration_ns}");
1111
}
1212

13-
#[inline(always)]
13+
#[inline]
1414
#[cfg(not(feature = "trace"))]
1515
pub(crate) fn record_event(_name: &str, _duration_ns: u64) {
1616
// Compiles to nothing in release builds.

0 commit comments

Comments
 (0)