working_copy: stop suppressing a warning that doesn't happen

We mutate the `new_file_state` variable on line 513 regardless of
platform these days, so we don't need to suppress the warning on Unix.
This commit is contained in:
Martin von Zweigbergk 2022-05-23 23:11:25 -07:00 committed by Martin von Zweigbergk
parent ecb86118e5
commit 23f9e6479f

View file

@ -454,7 +454,6 @@ impl TreeState {
return Ok(());
}
let metadata = disk_path.symlink_metadata().unwrap();
#[cfg_attr(unix, allow(unused_mut))]
let mut new_file_state = file_state(&metadata);
match maybe_current_file_state {
None => {