mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
used cfg!(windows) instead of env::consts::OS
This commit is contained in:
1 parent
acf156e5d4
commit
9d0f67838f
1 file changed
+1
-1
+1
-1
@@ -94,7 +94,7 @@ impl ExportManager {
|
||||
self.exporters.push(ExporterWithFilename {
|
||||
exporter,
|
||||
filename: if filename == "-" {
|
||||
if env::consts::OS == "windows" {
|
||||
if cfg!(windows) {
|
||||
"con:".to_string()
|
||||
} else {
|
||||
"/dev/stdout".to_string()
|
||||
|
||||
Reference in new issue
Block a user