More sane matching
1 files changed, 4 insertions(+), 10 deletions(-)

M src/bin/brightctl.rs
M src/bin/brightctl.rs +4 -10
@@ 94,16 94,10 @@ fn main() {
 
 fn run(argv: Vec<String>) -> Result<(), failure::Error> {
     let appcfg = AppConfig::new(&argv)?;
-    match appcfg {
-        AppConfig {
-            action: Action::Get,
-            ..
-        } => get_brightness(appcfg),
-        AppConfig {
-            action: Action::Watch,
-            ..
-        } => watch(appcfg),
-        AppConfig { .. } => set_brightness(appcfg),
+    match appcfg.action {
+        Action::Get => get_brightness(appcfg),
+        Action::Watch => watch(appcfg),
+        Action::Set(_) | Action::Incr(_) | Action::Decr(_) => set_brightness(appcfg),
     }
 }