Skip to content

Commit fb0b6d8

Browse files
committed
Make EXE_NAME a const too
The `gix_path::env::git::EXE_NAME` static item, while more visible than `NULL_DEVICE`, was crate-internal via `pub(super)`. So making it a `const` instead, as done here, is not a breaking nor otherwise user-facing change.
1 parent 9917d47 commit fb0b6d8

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
@@ -73,9 +73,9 @@ where
7373
}
7474

7575
#[cfg(windows)]
76-
pub(super) static EXE_NAME: &str = "git.exe";
76+
pub(super) const EXE_NAME: &str = "git.exe";
7777
#[cfg(not(windows))]
78-
pub(super) static EXE_NAME: &str = "git";
78+
pub(super) const EXE_NAME: &str = "git";
7979

8080
/// Invoke the git executable to obtain the origin configuration, which is cached and returned.
8181
///

0 commit comments

Comments
 (0)