aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
authorTeddy Wing2020-08-02 05:20:39 +0200
committerTeddy Wing2020-08-02 05:20:39 +0200
commit3f125dae8fa2e97354c3c7bc4def4bac1e9eacf1 (patch)
treee97b6e12b268eb13b877df3ef8a617b7269bc0c6 /src/bin
parent95ce6994a1a011609558dad89b776d34d45a6180 (diff)
downloadgit-suggestion-3f125dae8fa2e97354c3c7bc4def4bac1e9eacf1.tar.bz2
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.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/git-sugpatch.rs2
1 files changed, 1 insertions, 1 deletions
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,