diff options
author | Teddy Wing | 2020-08-02 05:20:39 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-02 05:20:39 +0200 |
commit | 3f125dae8fa2e97354c3c7bc4def4bac1e9eacf1 (patch) | |
tree | e97b6e12b268eb13b877df3ef8a617b7269bc0c6 /src/bin/git-sugpatch.rs | |
parent | 95ce6994a1a011609558dad89b776d34d45a6180 (diff) | |
download | git-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/git-sugpatch.rs')
-rw-r--r-- | src/bin/git-sugpatch.rs | 2 |
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, |