main: do not borrow layouts path

This commit is contained in:
Richard Acayan 2024-07-24 22:46:19 -04:00
parent 4fd0c82997
commit 15c9402b99

View file

@ -30,7 +30,7 @@ async fn main()
.expect("Registry required");
let layouts = Path::new("/usr/share/unfettered-keyboard/layouts");
let layout = Layout::load(&layouts, "latn_qwerty_us.xml")
let layout = Layout::load(layouts, "latn_qwerty_us.xml")
.expect("Layout should be loadable");
let mut dispatcher = Dispatcher::new(layout, queue.handle(), &globals).unwrap();