Skip to content

Commit 9917d47

Browse files
committed
Make NULL_DEVICE a const, rather than a static item
In `gix_path::env::git`.
1 parent 57e9a6f commit 9917d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-path/src/env/git/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ pub(super) static EXE_NAME: &str = "git";
8383
pub(super) static EXE_INFO: Lazy<Option<BString>> = Lazy::new(exe_info);
8484

8585
#[cfg(windows)]
86-
static NULL_DEVICE: &str = "NUL";
86+
const NULL_DEVICE: &str = "NUL";
8787
#[cfg(not(windows))]
88-
static NULL_DEVICE: &str = "/dev/null";
88+
const NULL_DEVICE: &str = "/dev/null";
8989

9090
fn exe_info() -> Option<BString> {
9191
let mut cmd = git_cmd(EXE_NAME.into());

0 commit comments

Comments
 (0)