Skip to content

Commit

Permalink
Fix unread name field warning in linux x11 Device struct
Browse files Browse the repository at this point in the history
  • Loading branch information
filnet committed Dec 10, 2021
1 parent cf74e25 commit 40dffa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform_impl/linux/x11/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ fn mkdid(w: c_int) -> crate::event::DeviceId {

#[derive(Debug)]
struct Device {
name: String,
_name: String,
scroll_axes: Vec<(i32, ScrollAxis)>,
// For master devices, this is the paired device (pointer <-> keyboard).
// For slave devices, this is the master.
Expand Down Expand Up @@ -658,7 +658,7 @@ impl Device {
}

let mut device = Device {
name: name.into_owned(),
_name: name.into_owned(),
scroll_axes,
attachment: info.attachment,
};
Expand Down

0 comments on commit 40dffa2

Please sign in to comment.