Skip to content

Commit 47a25f6

Browse files
develatterestk
authored andcommitted
Fixed lint issue for thread_and_thread_id test
1 parent 1d47c38 commit 47a25f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/encode/pattern/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ mod tests {
871871
.unwrap();
872872
}
873873

874-
#[test]
874+
#[test]
875875
#[cfg(feature = "simple_writer")]
876876
fn thread_and_thread_id() {
877877
thread::Builder::new()
@@ -881,7 +881,11 @@ mod tests {
881881
let mut buf = vec![];
882882
pw.encode(&mut SimpleWriter(&mut buf), &Record::builder().build())
883883
.unwrap();
884-
let expected = format!("{}:{}", thread::current().name().unwrap_or("unnamed"), thread_id::get());
884+
let expected = format!(
885+
"{}:{}",
886+
thread::current().name().unwrap_or("unnamed"),
887+
thread_id::get()
888+
);
885889
assert_eq!(buf, expected.as_bytes());
886890
})
887891
.unwrap()

0 commit comments

Comments
 (0)