1
1
mirror of https://github.com/mgree/ffs.git synced 2024-10-26 20:09:03 +03:00

get rid of warnings on linux

This commit is contained in:
Michael Greenberg 2021-07-01 22:16:21 -04:00
parent e9b0f0c5be
commit 019ab2f558
2 changed files with 9 additions and 3 deletions

View File

@ -70,7 +70,7 @@ impl Config {
}
#[cfg(target_os = "linux")]
fn platform_ignored_file(&self, s: &str) -> bool {
fn platform_ignored_file(&self, _s: &str) -> bool {
false
}

View File

@ -344,6 +344,12 @@ impl Drop for FS {
}
}
#[cfg(target_os = "linux")]
const ENOATTR: i32 = libc::ENODATA;
#[cfg(target_os = "macos")]
const ENOATTR: i32 = libc::ENOATTR;
impl Filesystem for FS {
#[instrument(level = "debug", skip(self, _req), fields(dirty = self.dirty.get()))]
fn destroy(&mut self, _req: &Request) {
@ -676,7 +682,7 @@ impl Filesystem for FS {
}
}
reply.error(libc::ENOATTR);
reply.error(ENOATTR);
}
#[instrument(level = "debug", skip(self, req, reply, value, _flags, _position))]
@ -774,7 +780,7 @@ impl Filesystem for FS {
if name == "user.type" {
reply.error(libc::EACCES);
} else {
reply.error(libc::ENOATTR);
reply.error(ENOATTR);
}
}