diff --git a/src/backend/drm/device/mod.rs b/src/backend/drm/device/mod.rs index 36447c0..55bf9a3 100644 --- a/src/backend/drm/device/mod.rs +++ b/src/backend/drm/device/mod.rs @@ -86,7 +86,7 @@ impl ControlDevice for DrmDeviceInternal {} impl DrmDevice { pub fn new(fd: A, disable_connectors: bool, logger: L) -> Result where - A: AsRawFd + Clone + 'static, + A: AsRawFd + 'static, L: Into>, { let log = crate::slog_or_fallback(logger).new(o!("smithay_module" => "backend_drm")); @@ -98,7 +98,7 @@ impl DrmDevice { let active = Arc::new(AtomicBool::new(true)); let dev = Arc::new({ let mut dev = FdWrapper { - fd: fd.clone(), + fd, privileged: false, logger: log.clone(), };