Skip to content
Myr

used cfg!(windows) instead of env::consts::OS

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Humble Penguin · committed by David Peter · parent acf156e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/export/mod.rs+1 added-1 removed
92 unmodified lines
9394 self.exporters.push(ExporterWithFilename {95 exporter,96 filename: if filename == "-" {97 if env::consts::OS == "windows" {97 if cfg!(windows) {98 "con:".to_string()99 } else {100 "/dev/stdout".to_string()101 }
24 unmodified lines