From 46462b20b6dce76567b6ef3ad0a457e9e4cde8ff Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Wed, 28 Apr 2021 22:09:46 +0200 Subject: [PATCH] drm: Fix unnecessary Clone requirement --- src/backend/drm/device/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(), };