remove unused is_executable on Windows

This commit is contained in:
Icxolu 2022-11-24 19:15:49 +01:00 committed by Abin Simon
parent d9b4b05d27
commit aed96649be

View file

@ -127,7 +127,7 @@ impl Permissions {
ColoredString::new(Colors::default_style(), res)
}
#[cfg_attr(windows, allow(dead_code))]
#[cfg(not(windows))]
pub fn is_executable(&self) -> bool {
self.user_execute || self.group_execute || self.other_execute
}