Mercurial > lbo > hg > leveldb-rs
changeset 545:b86bd64941c0
Fix compiler warnings about unnamed arguments in env.rs
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Wed, 02 Mar 2022 09:30:22 +0100 |
parents | aeebdeb1c5ec |
children | 21885bd7b9fc |
files | src/env.rs |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/env.rs Thu Sep 02 18:48:00 2021 +0200 +++ b/src/env.rs Wed Mar 02 09:30:22 2022 +0100 @@ -34,24 +34,24 @@ } pub trait Env { - fn open_sequential_file(&self, &Path) -> Result<Box<dyn Read>>; - fn open_random_access_file(&self, &Path) -> Result<Box<dyn RandomAccess>>; - fn open_writable_file(&self, &Path) -> Result<Box<dyn Write>>; - fn open_appendable_file(&self, &Path) -> Result<Box<dyn Write>>; + fn open_sequential_file(&self, _: &Path) -> Result<Box<dyn Read>>; + fn open_random_access_file(&self, _: &Path) -> Result<Box<dyn RandomAccess>>; + fn open_writable_file(&self, _: &Path) -> Result<Box<dyn Write>>; + fn open_appendable_file(&self, _: &Path) -> Result<Box<dyn Write>>; - fn exists(&self, &Path) -> Result<bool>; - fn children(&self, &Path) -> Result<Vec<PathBuf>>; - fn size_of(&self, &Path) -> Result<usize>; + fn exists(&self, _: &Path) -> Result<bool>; + fn children(&self, _: &Path) -> Result<Vec<PathBuf>>; + fn size_of(&self, _: &Path) -> Result<usize>; - fn delete(&self, &Path) -> Result<()>; - fn mkdir(&self, &Path) -> Result<()>; - fn rmdir(&self, &Path) -> Result<()>; - fn rename(&self, &Path, &Path) -> Result<()>; + fn delete(&self, _: &Path) -> Result<()>; + fn mkdir(&self, _: &Path) -> Result<()>; + fn rmdir(&self, _: &Path) -> Result<()>; + fn rename(&self, _: &Path, _: &Path) -> Result<()>; - fn lock(&self, &Path) -> Result<FileLock>; + fn lock(&self, _: &Path) -> Result<FileLock>; fn unlock(&self, l: FileLock) -> Result<()>; - fn new_logger(&self, &Path) -> Result<Logger>; + fn new_logger(&self, _: &Path) -> Result<Logger>; fn micros(&self) -> u64; fn sleep_for(&self, micros: u32);