Skip to content

Commit

Permalink
working_copy: silence some warnings about unused code on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonz committed Jun 14, 2021
1 parent 079b354 commit f26c9f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/working_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ use std::ops::Bound;
use std::os::unix::fs::symlink;
#[cfg(unix)]
use std::os::unix::fs::PermissionsExt;
#[cfg(windows)]
use std::os::windows::fs::symlink_file;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::time::UNIX_EPOCH;
Expand Down Expand Up @@ -453,6 +451,7 @@ impl TreeState {
file_state
}

#[cfg_attr(windows, allow(unused_variables))]
fn write_symlink(&self, disk_path: &Path, path: &RepoPath, id: &SymlinkId) -> FileState {
create_parent_dirs(disk_path);
#[cfg(windows)]
Expand All @@ -468,6 +467,7 @@ impl TreeState {
self.file_state(&disk_path).unwrap()
}

#[cfg_attr(windows, allow(unused_variables))]
fn set_executable(&self, disk_path: &Path, executable: bool) {
#[cfg(windows)]
{
Expand Down

0 comments on commit f26c9f0

Please sign in to comment.