formatting

This commit is contained in:
Ferdinand Schober
2023-02-14 00:55:02 +01:00
parent 6aa525c960
commit 437a599504
8 changed files with 93 additions and 68 deletions

View File

@@ -12,7 +12,7 @@ use lan_mouse::{
use lan_mouse::backend::windows;
#[cfg(unix)]
use lan_mouse::backend::{Backend,wayland,x11};
use lan_mouse::backend::{wayland, x11, Backend};
fn add_client(client_manager: &mut ClientManager, client: &config::Client, pos: Position) {
let ip = match client.ip {
@@ -74,7 +74,7 @@ pub fn main() {
"x11" => Backend::X11,
"wayland" => Backend::WAYLAND,
_ => panic!("unknown XDG_SESSION_TYPE"),
}
},
Err(_) => panic!("could not detect session type"),
};
@@ -82,11 +82,13 @@ pub fn main() {
println!("using backend: windows");
#[cfg(unix)]
println!("using backend: {}", match backend {
Backend::X11 => "x11",
Backend::WAYLAND => "wayland",
});
println!(
"using backend: {}",
match backend {
Backend::X11 => "x11",
Backend::WAYLAND => "wayland",
}
);
// start producing and consuming events
let event_producer = thread::Builder::new()