Skip to content

Commit b5dc872

Browse files
committed
Remove RefCell for fields in LocalTimeCacher
1 parent 0aa5593 commit b5dc872

File tree

3 files changed

+205
-198
lines changed

3 files changed

+205
-198
lines changed

spdlog/src/formatter/full_formatter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ impl FullFormatter {
6363

6464
{
6565
let mut local_time_cacher = LOCAL_TIME_CACHER.lock();
66-
let time = local_time_cacher.get(record.time());
66+
let mut time = local_time_cacher.get(record.time());
6767
dest.write_str("[")?;
68-
dest.write_str(&time.full_second_str())?;
68+
dest.write_str(time.full_second_str())?;
6969
dest.write_str(".")?;
7070
write!(dest, "{:03}", time.millisecond())?;
7171
dest.write_str("] [")?;

0 commit comments

Comments
 (0)