aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2020-09-16 02:16:27 +0200
committerTeddy Wing2020-09-16 02:16:27 +0200
commit6fdf7b121bcddbc0328703f34fdb0fee71e03dc8 (patch)
tree98bb34d963c8d4a52c5174614a7409322ec2406e /src/main.rs
parente68aa0dfd1a200ff781f19ddffd69d01d9796ad3 (diff)
downloadgit-todo-6fdf7b121bcddbc0328703f34fdb0fee71e03dc8.tar.bz2
lib.rs: Replace top-level `unwrap()`s with `Result`s
Add a new `Error` type that we can return in the failure case. Still need to work out how to handle errors inside the diff callback.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 48e8f5d..f743256 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,5 +9,5 @@ fn main() {
let repo = Repository::open(".").unwrap();
let todos = Todos { repo: &repo };
- todos.write_since(todos.master_tree(), &mut std::io::stdout());
+ todos.write_since(todos.master_tree().unwrap(), &mut std::io::stdout()).unwrap();
}