forked from mirrors/jj
working_copy: silence some warnings about unused code on Windows
This commit is contained in:
parent
079b3543b5
commit
f26c9f01ce
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,6 @@ use std::ops::Bound;
|
||||||
use std::os::unix::fs::symlink;
|
use std::os::unix::fs::symlink;
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
#[cfg(windows)]
|
|
||||||
use std::os::windows::fs::symlink_file;
|
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::UNIX_EPOCH;
|
use std::time::UNIX_EPOCH;
|
||||||
|
@ -453,6 +451,7 @@ impl TreeState {
|
||||||
file_state
|
file_state
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(windows, allow(unused_variables))]
|
||||||
fn write_symlink(&self, disk_path: &Path, path: &RepoPath, id: &SymlinkId) -> FileState {
|
fn write_symlink(&self, disk_path: &Path, path: &RepoPath, id: &SymlinkId) -> FileState {
|
||||||
create_parent_dirs(disk_path);
|
create_parent_dirs(disk_path);
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
@ -468,6 +467,7 @@ impl TreeState {
|
||||||
self.file_state(&disk_path).unwrap()
|
self.file_state(&disk_path).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(windows, allow(unused_variables))]
|
||||||
fn set_executable(&self, disk_path: &Path, executable: bool) {
|
fn set_executable(&self, disk_path: &Path, executable: bool) {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue