From 3f125dae8fa2e97354c3c7bc4def4bac1e9eacf1 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 2 Aug 2020 05:20:39 +0200 Subject: git-sugpatch: Fix `SuggestionUrl` parsing Forgot to change this line when I set up the loop over suggestion arguments. We want to parse the current argument instead of hard-coding the first one. --- src/bin/git-sugpatch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/git-sugpatch.rs b/src/bin/git-sugpatch.rs index 0499c62..c4969b1 100644 --- a/src/bin/git-sugpatch.rs +++ b/src/bin/git-sugpatch.rs @@ -49,7 +49,7 @@ fn main() { client.fetch(&suggestion_arg).unwrap() } else { - let url: SuggestionUrl = args[1].parse().unwrap(); + let url: SuggestionUrl = suggestion_arg.parse().unwrap(); let client = Client::new( &config.github_token, -- cgit v1.2.3