summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorWez Furlong <wez@wezfurlong.org>2024-06-09 05:45:23 -0700
committerWez Furlong <wez@wezfurlong.org>2024-06-09 05:46:52 -0700
commita0e636635f0d8feb23ee377be7987ab34edec35e (patch)
tree8291cb91f720f0d15d2bf1bf8bb037f7b4311bcf /src/main.rs
parent85492ff8caac63359a8051318fa263facf6ae370 (diff)
add in my preferred rustfmt options
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs
index 0dd63de..1018aca 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,9 +1,9 @@
use crate::mapping::*;
use crate::remapper::*;
use anyhow::{Context, Result};
+use clap::Parser;
use std::path::PathBuf;
use std::time::Duration;
-use clap::Parser;
mod deviceinfo;
mod mapping;
@@ -11,11 +11,7 @@ mod remapper;
/// Remap libinput evdev keyboard inputs
#[derive(Debug, Parser)]
-#[command(
- name = "evremap",
- about,
- author = "Wez Furlong"
-)]
+#[command(name = "evremap", about, author = "Wez Furlong")]
enum Opt {
/// Rather than running the remapper, list currently available devices.
/// This is helpful to check their names when setting up the initial
@@ -57,7 +53,9 @@ pub fn list_keys() -> Result<()> {
fn setup_logger() {
let mut builder = env_logger::Builder::new();
builder.filter_level(log::LevelFilter::Info);
- let env = env_logger::Env::new().filter("EVREMAP_LOG").write_style("EVREMAP_LOG_STYLE");
+ let env = env_logger::Env::new()
+ .filter("EVREMAP_LOG")
+ .write_style("EVREMAP_LOG_STYLE");
builder.parse_env(env);
builder.init();
}