Skip to content

Commit a40191a

Browse files
committed
krun_input: Fix clippy warnings
Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
1 parent bea9fef commit a40191a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/krun_input/src/c_to_rust.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ pub struct InputConfigBackend<'userdata> {
194194
pub create_fn: header::krun_input_create_fn,
195195
pub vtable: header::krun_input_config_vtable,
196196
}
197-
unsafe impl<'a> Send for InputConfigBackend<'a> {}
198-
unsafe impl<'a> Sync for InputConfigBackend<'a> {}
197+
unsafe impl Send for InputConfigBackend<'_> {}
198+
unsafe impl Sync for InputConfigBackend<'_> {}
199199

200-
impl<'a> InputConfigBackend<'a> {
200+
impl InputConfigBackend<'_> {
201201
/// Create an InputConfigInstance for handling device configuration
202202
pub fn create_instance(&self) -> Result<InputConfigInstance, InputBackendError> {
203203
let mut instance = null_mut();
@@ -253,10 +253,10 @@ pub struct InputEventProviderBackend<'userdata> {
253253
pub vtable: header::krun_input_event_provider_vtable,
254254
}
255255

256-
unsafe impl<'a> Send for InputEventProviderBackend<'a> {}
257-
unsafe impl<'a> Sync for InputEventProviderBackend<'a> {}
256+
unsafe impl Send for InputEventProviderBackend<'_> {}
257+
unsafe impl Sync for InputEventProviderBackend<'_> {}
258258

259-
impl<'a> InputEventProviderBackend<'a> {
259+
impl InputEventProviderBackend<'_> {
260260
/// Create an InputEventsInstance for handling input events
261261
pub fn create_instance(&self) -> Result<InputEventProviderInstance, InputBackendError> {
262262
let mut instance = null_mut();

0 commit comments

Comments
 (0)