From 6fdf7b121bcddbc0328703f34fdb0fee71e03dc8 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 16 Sep 2020 02:16:27 +0200 Subject: 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. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index cf539a5..834bb4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,4 @@ edition = "2018" [dependencies] git2 = "0.13.11" +thiserror = "1.0.20" -- cgit v1.2.3