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

This commit is contained in:
Humble Penguin authored and David Peter committed 2023-03-15 09:34:29 +01:00
1 parent acf156e5d4
commit 9d0f67838f
1 file changed
+1 -1
+1 -1
View File
@@ -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()