diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 633e6bb..c2c040c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,9 +118,9 @@ struct Config { fn main() -> Result<()> { // Get the config path from the first command-line argument // or fall back to the default /etc/dyndns.conf. - let config_path = env::args().nth(1).unwrap_or_else(|| { - String::from("/etc/dyndns.conf") - }); + let config_path = env::args() + .nth(1) + .unwrap_or_else(|| String::from("/etc/dyndns.conf")); let mut config_file = File::open(config_path.as_str())?; |