Skip to content

Commit

Permalink
seperate error with other levels
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjj27 committed Nov 6, 2020
1 parent 7c3ef4a commit 52ccb01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fmt/writer/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ use wasm_bindgen::prelude::*;
use crate::fmt::glob::Target;

pub(in crate::fmt::writer) fn print(msg: &str, t: Target) {
// work around for unused variable
let _ = t;

log(&msg);
match t {
Target::Stderr => error(&msg),
Target::Stdout => log(&msg),
}
}

#[wasm_bindgen]
Expand Down

0 comments on commit 52ccb01

Please sign in to comment.