diff options
| author | Teddy Wing | 2020-07-29 00:43:12 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2020-07-29 00:43:12 +0200 | 
| commit | 4b994b808a8b0b03e95067c352e9d230ebec92d6 (patch) | |
| tree | 02527e032cff6b4dabe256b436ddead7121067a4 /src/bin | |
| parent | 03f51738a656b8db55d299efcc104b2b20f16055 (diff) | |
| download | git-suggestion-4b994b808a8b0b03e95067c352e9d230ebec92d6.tar.bz2 | |
Suggestion: Remove `unwrap`s and return `Result`s from diff methods
Extend the `Error` enum with new variants to capture the possible errors
from `diff()` and `diff_with_repo()`.
Diffstat (limited to 'src/bin')
| -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 1e21923..4b0a24b 100644 --- a/src/bin/git-sugpatch.rs +++ b/src/bin/git-sugpatch.rs @@ -21,5 +21,5 @@ fn main() {      let suggestion = client.fetch(&url.comment_id).unwrap(); -    print!("{}", suggestion.diff()); +    print!("{}", suggestion.diff().unwrap());  } | 
