Skip to content

Commit

Permalink
fix lifetime clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeissl committed Dec 14, 2024
1 parent dcadf20 commit 0690d17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wayland-backend/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn print_send_message<Id: Display, Fd: AsRawFd>(

pub(crate) struct DisplaySlice<'a, D>(pub &'a [D]);

impl<'a, D: Display> Display for DisplaySlice<'a, D> {
impl<D: Display> Display for DisplaySlice<'_, D> {
#[cfg_attr(coverage, coverage(off))]
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut it = self.0.iter();
Expand Down
2 changes: 1 addition & 1 deletion wayland-client/src/event_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ impl<State: 'static> QueueHandle<State> {
}
}

impl<'a, State> Drop for QueueFreezeGuard<'a, State> {
impl<State> Drop for QueueFreezeGuard<'_, State> {
fn drop(&mut self) {
let mut lock = self.qh.inner.lock().unwrap();
lock.freeze_count -= 1;
Expand Down
2 changes: 1 addition & 1 deletion wayland-server/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub struct DataInit<'a, D: 'static> {
pub(crate) error: &'a mut Option<(u32, String)>,
}

impl<'a, D> DataInit<'a, D> {
impl<D> DataInit<'_, D> {
/// Initialize an object by assigning it its user-data
pub fn init<I: Resource + 'static, U: Send + Sync + 'static>(
&mut self,
Expand Down

0 comments on commit 0690d17

Please sign in to comment.