working_copy: make a &mut self argument not mutable

This commit is contained in:
Martin von Zweigbergk 2022-01-17 22:02:12 -08:00
parent 1fc19dbbaf
commit 2916dc3423

View file

@ -63,7 +63,7 @@ pub struct FileState {
impl FileState {
#[cfg_attr(unix, allow(dead_code))]
fn is_executable(&mut self) -> bool {
fn is_executable(&self) -> bool {
if let FileType::Normal { executable } = &self.file_type {
*executable
} else {