<NME> output.rs
<BEF> use crate::{
    backend::renderer::{Frame, ImportAll, Renderer, Texture},
    desktop::{space::SpaceElement, LayerSurface, Window},
    utils::{Logical, Point, Rectangle},
    wayland::output::Output,
};
    cell::{RefCell, RefMut},
use wayland_server::protocol::wl_surface::WlSurface;

use std::{
    any::{Any, TypeId},
    cell::{RefCell, RefMut},
    collections::{HashMap, VecDeque},
};

pub type OutputUserdata = RefCell<HashMap<usize, OutputState>>;
pub fn output_state(space: usize, o: &Output) -> RefMut<'_, OutputState> {
    let userdata = o.user_data();
    userdata.insert_if_missing(OutputUserdata::default);
    RefMut::map(userdata.get::<OutputUserdata>().unwrap().borrow_mut(), |m| {
        m.entry(space).or_default()
    })
}

<MSG> cleanup: imports

<DFF> @@ -1,6 +1,6 @@
 use crate::{
     backend::renderer::{Frame, ImportAll, Renderer, Texture},
-    desktop::{space::SpaceElement, LayerSurface, Window},
+    desktop::space::SpaceElement,
     utils::{Logical, Point, Rectangle},
     wayland::output::Output,
 };
@@ -8,7 +8,7 @@ use indexmap::IndexMap;
 use wayland_server::protocol::wl_surface::WlSurface;
 
 use std::{
-    any::{Any, TypeId},
+    any::TypeId,
     cell::{RefCell, RefMut},
     collections::{HashMap, VecDeque},
 };

cleanup: imports