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 <hi@alyssa.is>
This commit is contained in:
parent
6a559e2aaf
commit
e20a5a5bee
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ impl Frontend {
|
|||
}
|
||||
}
|
||||
|
||||
fn node(&self) -> MutexGuard<FrontendInternal> {
|
||||
fn node(&self) -> MutexGuard<'_, FrontendInternal> {
|
||||
self.node.lock().unwrap()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue