Skip to content

Commit 95cd4ed

Browse files
committed
Trick the compiler to think we are using timestamp
1 parent 92a5b2d commit 95cd4ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fmt/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ impl<'a> DefaultFormat<'a> {
277277
}
278278
#[cfg(not(feature = "humantime"))]
279279
{
280+
// Trick the compiler to think we have used self.timestamp
281+
// Workaround for "field is never used: `timestamp`" compiler nag.
282+
let _ = self.timestamp;
280283
Ok(())
281284
}
282285
}

0 commit comments

Comments
 (0)