Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
```
error: this lifetime isn't used in the impl
--> src/passthrough/mod.rs:139:6
|
139| impl<'a> InodeData {
| ^^
|
= note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings`
= help: for further information visit
https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
```

Signed-off-by: wllenyj <wllenyj@linux.alibaba.com>
  • Loading branch information
wllenyj committed Jul 12, 2022
1 parent f23a26e commit ac6056e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/passthrough/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn is_safe_inode(mode: u32) -> bool {
matches!(mode & libc::S_IFMT, libc::S_IFREG | libc::S_IFDIR)
}

impl<'a> InodeData {
impl InodeData {
fn new(inode: Inode, f: FileOrHandle, refcount: u64, altkey: InodeAltKey, mode: u32) -> Self {
InodeData {
inode,
Expand Down

0 comments on commit ac6056e

Please sign in to comment.