Skip to content

Commit ca6a36e

Browse files
ids1024wash2
authored andcommitted
Fix warnings/clippy lints
1 parent fd069b6 commit ca6a36e

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

examples/dmabuf_formats.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ fn main() {
8989
for entry in app_data.dmabuf_state.modifiers() {
9090
print_format(entry);
9191
}
92-
93-
return;
9492
}
9593
Some(ver @ 4..) => {
9694
println!("Version `{}` of `zwp_linux_dmabuf_v1` supported. Showing default dmabuf feedback.\n", ver);

src/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl RegistryState {
192192
pub fn globals_by_interface<'a>(
193193
&'a self,
194194
interface: &'a str,
195-
) -> impl Iterator<Item = &Global> + 'a {
195+
) -> impl Iterator<Item = &'a Global> + 'a {
196196
self.globals.iter().filter(move |g| g.interface == interface)
197197
}
198198

src/seat/keyboard/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl SeatState {
110110
#[allow(missing_debug_implementations)]
111111
pub struct Keymap<'a>(&'a xkb::Keymap);
112112

113-
impl<'a> Keymap<'a> {
113+
impl Keymap<'_> {
114114
/// Get keymap as string in text format. The keymap should always be valid.
115115
pub fn as_string(&self) -> String {
116116
self.0.get_as_string(xkb::KEYMAP_FORMAT_TEXT_V1)

src/seat/pointer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ pub enum ThemeSpec<'a> {
555555
System,
556556
}
557557

558-
impl<'a> Default for ThemeSpec<'a> {
558+
impl Default for ThemeSpec<'_> {
559559
fn default() -> Self {
560560
Self::System
561561
}

0 commit comments

Comments
 (0)