Skip to content

Commit e20a5a5

Browse files
alyssaisepilys
authored andcommitted
vhost_user: fix mismatched lifetime warning
warning: hiding a lifetime that's elided elsewhere is confusing --> vhost/src/vhost_user/frontend.rs:131:13 | 131 | fn node(&self) -> MutexGuard<FrontendInternal> { | ^^^^^ ---------------------------- the same lifetime is hidden here | | | the lifetime is elided here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: use `'_` for type paths | 131 | fn node(&self) -> MutexGuard<'_, FrontendInternal> { | +++ Signed-off-by: Alyssa Ross <[email protected]>
1 parent 6a559e2 commit e20a5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vhost/src/vhost_user/frontend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Frontend {
128128
}
129129
}
130130

131-
fn node(&self) -> MutexGuard<FrontendInternal> {
131+
fn node(&self) -> MutexGuard<'_, FrontendInternal> {
132132
self.node.lock().unwrap()
133133
}
134134

0 commit comments

Comments
 (0)