Skip to content

Commit 05b1f8d

Browse files
committed
Fixed error related to other platforms not seeing NULL_SOURCE
1 parent bea6e11 commit 05b1f8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bindings/text/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ pub mod combinediff;
88
pub mod interdiff;
99
pub mod yaml;
1010

11-
#[cfg(target_os = "windows")]
11+
#[cfg(target_family = "windows")]
1212
pub const NULL_SOURCE: &str = "nul";
13-
#[cfg(target_os = "linux")]
13+
#[cfg(target_family = "unix")]
1414
pub const NULL_SOURCE: &str = "/dev/null";
1515

1616
use rlua::prelude::*;

0 commit comments

Comments
 (0)