From c68889b2dbfe11f2992115854d1e90dc749342e0 Mon Sep 17 00:00:00 2001 From: shimunn <> Date: Sat, 25 May 2019 21:03:13 +0200 Subject: [PATCH] provide default for repo --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 204d3c2..ea67d11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ fn main() { println!( "Hello, world! {:?}", update( - &opts.repo.unwrap(), + &opts.repo.unwrap_or(PathBuf::from("repo")), comments.take(opts.fetch).flatten(), &opts.redditor, &("reddit.com/u/".to_owned() + &opts.redditor),