aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/git-sugpatch.rs
diff options
context:
space:
mode:
authorTeddy Wing2020-07-29 00:43:12 +0200
committerTeddy Wing2020-07-29 00:43:12 +0200
commit4b994b808a8b0b03e95067c352e9d230ebec92d6 (patch)
tree02527e032cff6b4dabe256b436ddead7121067a4 /src/bin/git-sugpatch.rs
parent03f51738a656b8db55d299efcc104b2b20f16055 (diff)
downloadgit-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/git-sugpatch.rs')
-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 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());
}