Skip to content

Commit

Permalink
Trick the compiler to think we are using timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
oherrala committed Sep 9, 2019
1 parent 146078d commit e984fee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ impl<'a> DefaultFormat<'a> {
}
#[cfg(not(feature = "humantime"))]
{
// Trick the compiler to think we have used self.timestamp
// Workaround for "field is never used: `timestamp`" compiler nag.
let _ = self.timestamp;
Ok(())
}
}
Expand Down

0 comments on commit e984fee

Please sign in to comment.