From be2e551a89abb98099f094f73889d6d0cc46c87c Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 24 Dec 2023 17:38:13 +0400 Subject: Move clones up from find_window_and_output --- src/utils.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 07c737df..08606a53 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -17,6 +17,10 @@ use smithay::utils::{Logical, Point, Rectangle, Size}; use crate::config::Config; +pub fn clone2(t: (&T, &U)) -> (T, U) { + (t.0.clone(), t.1.clone()) +} + pub fn get_monotonic_time() -> Duration { let ts = clock_gettime(ClockId::Monotonic); Duration::new(ts.tv_sec as u64, ts.tv_nsec as u32) -- cgit