Skip to content

Commit

Permalink
Fix warnings/clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 authored and wash2 committed Dec 18, 2024
1 parent fd069b6 commit ca6a36e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions examples/dmabuf_formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ fn main() {
for entry in app_data.dmabuf_state.modifiers() {
print_format(entry);
}

return;
}
Some(ver @ 4..) => {
println!("Version `{}` of `zwp_linux_dmabuf_v1` supported. Showing default dmabuf feedback.\n", ver);
Expand Down
2 changes: 1 addition & 1 deletion src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl RegistryState {
pub fn globals_by_interface<'a>(
&'a self,
interface: &'a str,
) -> impl Iterator<Item = &Global> + 'a {
) -> impl Iterator<Item = &'a Global> + 'a {
self.globals.iter().filter(move |g| g.interface == interface)
}

Expand Down
2 changes: 1 addition & 1 deletion src/seat/keyboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl SeatState {
#[allow(missing_debug_implementations)]
pub struct Keymap<'a>(&'a xkb::Keymap);

impl<'a> Keymap<'a> {
impl Keymap<'_> {
/// Get keymap as string in text format. The keymap should always be valid.
pub fn as_string(&self) -> String {
self.0.get_as_string(xkb::KEYMAP_FORMAT_TEXT_V1)
Expand Down
2 changes: 1 addition & 1 deletion src/seat/pointer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ pub enum ThemeSpec<'a> {
System,
}

impl<'a> Default for ThemeSpec<'a> {
impl Default for ThemeSpec<'_> {
fn default() -> Self {
Self::System
}
Expand Down

0 comments on commit ca6a36e

Please sign in to comment.