diff --git a/fish-rust/src/wutil/mod.rs b/fish-rust/src/wutil/mod.rs index ad61f2c26..4d33168d6 100644 --- a/fish-rust/src/wutil/mod.rs +++ b/fish-rust/src/wutil/mod.rs @@ -508,7 +508,7 @@ pub fn fish_wcswidth(s: &wstr) -> libc::c_int { /// other things. While an inode / dev pair is sufficient to distinguish co-existing files, Linux /// seems to aggressively re-use inodes, so it cannot determine if a file has been deleted (ABA /// problem). Therefore we include richer information. -#[derive(Clone, Eq, Hash, Ord, PartialEq, PartialOrd)] +#[derive(Debug, Clone, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct FileId { pub device: libc::dev_t, pub inode: libc::ino_t, @@ -553,18 +553,6 @@ pub fn older_than(&self, rhs: &FileId) -> bool { let rhs = (rhs.mod_seconds, rhs.mod_nanoseconds); lhs.cmp(&rhs).is_lt() } - - pub fn dump(&self) -> WString { - let mut result = WString::new(); - result += &sprintf!(" device: %lld\n", self.device)[..]; - result += &sprintf!(" inode: %lld\n", self.inode)[..]; - result += &sprintf!(" size: %lld\n", self.size)[..]; - result += &sprintf!(" change: %lld\n", self.change_seconds)[..]; - result += &sprintf!("change_nano: %lld\n", self.change_nanoseconds)[..]; - result += &sprintf!(" mod: %lld\n", self.mod_seconds)[..]; - result += &sprintf!(" mod_nano: %lld", self.mod_nanoseconds)[..]; - result - } } pub const INVALID_FILE_ID: FileId = FileId::new();