diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-07 09:07:22 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-07 09:28:14 +0400 |
| commit | 64c41fa2c8853aefc8f62bf9492043a6c25b8c8f (patch) | |
| tree | ce7e5d6dfd02b844e0c2d8f91e13348ea8e4c3ae /src/utils.rs | |
| parent | 4e0aa391137a53180783ab3d2d0ff0cc6311b23b (diff) | |
| download | niri-64c41fa2c8853aefc8f62bf9492043a6c25b8c8f.tar.gz niri-64c41fa2c8853aefc8f62bf9492043a6c25b8c8f.tar.bz2 niri-64c41fa2c8853aefc8f62bf9492043a6c25b8c8f.zip | |
Move config into a separate crate
Get miette and knuffel deps contained within.
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils.rs b/src/utils.rs index 08606a53..e43ba67d 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -11,12 +11,11 @@ use std::time::Duration; use anyhow::{ensure, Context}; use directories::UserDirs; +use niri_config::Config; use smithay::output::Output; use smithay::reexports::rustix::time::{clock_gettime, ClockId}; use smithay::utils::{Logical, Point, Rectangle, Size}; -use crate::config::Config; - pub fn clone2<T: Clone, U: Clone>(t: (&T, &U)) -> (T, U) { (t.0.clone(), t.1.clone()) } |
