Skip to content

Commit

Permalink
Remove unnecessary lifetime annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
lily-mara committed Jul 2, 2020
1 parent a8a1fca commit 0fdd5fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ pub struct Device {

impl Device {
#[doc(hidden)]
pub unsafe fn new<'b>(ptr: *const hid_device_info) -> Device {
Device { ptr: ptr }
pub unsafe fn new(ptr: *const hid_device_info) -> Device {
Device { ptr }
}

/// The path representation.
Expand Down Expand Up @@ -129,3 +129,6 @@ impl Drop for Device {

#[cfg(any(target_os = "linux", target_os = "macos"))]
unsafe impl core::marker::Send for Device {}

#[cfg(any(target_os = "linux", target_os = "macos"))]
unsafe impl core::marker::Sync for Device {}

0 comments on commit 0fdd5fe

Please sign in to comment.