Skip to content

Commit d45e7a4

Browse files
committed
logging: specify type for deserialization
1 parent 208b82e commit d45e7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub struct TerminalWriterMaker {
4242

4343
impl std::io::Write for RemoteWriter {
4444
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
45-
let log = if let Ok(json_log) = serde_json::from_slice(buf) {
45+
let log = if let Ok(json_log) = serde_json::from_slice::<serde_json::Value>(buf) {
4646
serde_json::to_string(&json_log).unwrap()
4747
} else {
4848
let string = String::from_utf8(buf.to_vec())

0 commit comments

Comments
 (0)