Skip to content

Commit 580f19f

Browse files
germagstefano-garzarella
authored andcommitted
Fix "mismatched lifetime syntaxes" warning
rust 1.89 made the "mismatched lifetime syntaxes" lint to show a warning by default: https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint Add a placeholder lifetime to `vhost_user_backend::vring::VringStateMutGuard` to be explicit. Signed-off-by: German Maglione <[email protected]>
1 parent cfff91e commit 580f19f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vhost-user-backend/src/vring.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ pub trait VringT<M: GuestAddressSpace>:
3838
Self: Sized;
3939

4040
/// Get an immutable reference to the kick event fd.
41-
fn get_ref(&self) -> <Self as VringStateGuard<M>>::G;
41+
fn get_ref(&self) -> <Self as VringStateGuard<'_, M>>::G;
4242

4343
/// Get a mutable reference to the kick event fd.
44-
fn get_mut(&self) -> <Self as VringStateMutGuard<M>>::G;
44+
fn get_mut(&self) -> <Self as VringStateMutGuard<'_, M>>::G;
4545

4646
/// Add an used descriptor into the used queue.
4747
fn add_used(&self, desc_index: u16, len: u32) -> Result<(), VirtQueError>;

0 commit comments

Comments
 (0)