1 files changed, 9 insertions(+), 10 deletions(-)

M src/main.rs
M src/main.rs +9 -10
@@ 28,12 28,10 @@ impl Config {
         // second priority: in the user's config dir
         match env::var("XDG_CONFIG_HOME") {
             Ok(confdir) => paths.push(PathBuf::from(&confdir).join("choosier")),
-            Err(_) => {
-                match env::var("HOME") {
-                    Ok(homedir) => paths.push(PathBuf::from(&homedir).join(".config").join("choosier")),
-                    Err(_) => (),
-                }
-            }
+            Err(_) => match env::var("HOME") {
+                Ok(homedir) => paths.push(PathBuf::from(&homedir).join(".config").join("choosier")),
+                Err(_) => (),
+            },
         }
 
         // third priority: in /etc

          
@@ 45,7 43,10 @@ impl Config {
                 return Ok(cfg_path.to_owned());
             }
         }
-        Err(io::Error::new(io::ErrorKind::NotFound, "configuration file not found"))
+        Err(io::Error::new(
+            io::ErrorKind::NotFound,
+            "configuration file not found",
+        ))
     }
 
     fn parse(config_str: &str) -> Result<Config, io::Error> {

          
@@ 65,8 66,6 @@ impl Config {
     }
 }
 
-
-
 fn open_url(url: &str, config: Config) {
     use std::process::Command;
 

          
@@ 78,7 77,7 @@ fn open_url(url: &str, config: Config) {
                 Some(_) => {
                     pick = browser.to_string();
                 }
-                None => ()
+                None => (),
             }
         }
     }