mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:22:40 +08:00
Silence clippy lints
This commit is contained in:
parent
1347df898e
commit
f0a5f8738b
@ -714,7 +714,7 @@ fn path_remoteness(path: &wstr) -> DirRemoteness {
|
||||
0x19830326 | // fhgfs / BeeGFS. Undocumented magic number.
|
||||
0x013111A7 | 0x013111A8 | // IBRIX. Undocumented.
|
||||
0x65735546 | // FUSE_SUPER_MAGIC
|
||||
0xa501FCF5 // VXFS_SUPER_MAGIC
|
||||
0xA501FCF5 // VXFS_SUPER_MAGIC
|
||||
=> DirRemoteness::remote,
|
||||
_ => {
|
||||
DirRemoteness::unknown
|
||||
|
@ -105,6 +105,8 @@ impl DirEntry {
|
||||
let narrow = wcs2zstring(&self.name);
|
||||
let mut s: libc::stat = unsafe { std::mem::zeroed() };
|
||||
if unsafe { libc::fstatat(fd, narrow.as_ptr(), &mut s, 0) } == 0 {
|
||||
// st_dev is a dev_t, which is i32 on OpenBSD/Haiku and u32 in FreeBSD 11
|
||||
#[allow(clippy::unnecessary_cast)]
|
||||
let dev_inode = DevInode {
|
||||
device: s.st_dev as u64,
|
||||
inode: s.st_ino as u64,
|
||||
|
Loading…
x
Reference in New Issue
Block a user