We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07d51b commit 92b73daCopy full SHA for 92b73da
src/lib.rs
@@ -406,10 +406,10 @@ where
406
bufs.flush_current_buf(writer)
407
}
408
409
- fn get_timestamp<S>(&self, id: &Id ,ctx: &Context<S>,) -> Option<String>
+ fn get_timestamp<S>(&self, id: &Id, ctx: &Context<S>) -> Option<String>
410
where
411
S: Subscriber + for<'span> LookupSpan<'span>,
412
- {
+ {
413
match ctx.span(id) {
414
// if the event is in a span, get the span's starting point.
415
Some(ctx) => {
@@ -466,7 +466,7 @@ where
466
(secs * 1_000.0, "ms")
467
} else {
468
(secs, "s ")
469
- };
+ };
470
471
let n = format!(" {n:.2}");
472
format!(
0 commit comments