Skip to content

Commit f961687

Browse files
committed
fix compile warnings
1 parent a6710c5 commit f961687

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gix/src/config/cache/access.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ impl Cache {
271271
})
272272
}
273273

274+
#[cfg(feature = "worktree-mutation")]
274275
fn protect_options(&self) -> Result<gix_validate::path::component::Options, config::boolean::Error> {
275276
const IS_WINDOWS: bool = cfg!(windows);
276277
const IS_MACOS: bool = cfg!(target_os = "macos");

gix/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ pub mod discover;
346346

347347
pub mod env;
348348

349-
#[cfg(feature = "index")]
349+
#[cfg(feature = "attributes")]
350350
fn is_dir_to_mode(is_dir: bool) -> gix_index::entry::Mode {
351351
if is_dir {
352352
gix_index::entry::Mode::DIR

0 commit comments

Comments
 (0)