From 5afc15edaa593bdf7dd2ae7c542980d9d70b8321 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Fri, 24 Dec 2021 04:36:58 -0600 Subject: Migrate to 2021 edition --- Cargo.toml | 2 +- src/fuse/ops.rs | 2 +- src/proto.rs | 2 +- src/util.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 833af82..63972a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "blown-fuse" version = "0.1.0" authors = ["Alejandro Soto "] -edition = "2018" +edition = "2021" description = "Filesystem in Userspace" [features] diff --git a/src/fuse/ops.rs b/src/fuse/ops.rs index 7a0c18c..bfbc70a 100644 --- a/src/fuse/ops.rs +++ b/src/fuse/ops.rs @@ -11,7 +11,7 @@ use std::{ use crate::{proto, util::OutputChain, Errno, Ino, TimeToLive}; use super::{ - fs::{Fuse, Inode, Tape}, + fs::{Fuse, Inode}, io::{AccessFlags, Entry, EntryType, FsInfo}, session, Done, Operation, Reply, Request, }; diff --git a/src/proto.rs b/src/proto.rs index c6b9925..9816922 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -655,7 +655,7 @@ impl Request<'_> { self.header } - pub fn body(&self) -> &RequestBody { + pub fn body(&self) -> &RequestBody<'_> { &self.body } } diff --git a/src/util.rs b/src/util.rs index 7263738..5185efd 100644 --- a/src/util.rs +++ b/src/util.rs @@ -65,7 +65,7 @@ impl<'a> OutputChain<'a> { } } - pub fn iter(&self) -> OutputChainIter { + pub fn iter(&self) -> OutputChainIter<'_> { OutputChainIter(Some(&self)) } } -- cgit v1.2.3