diff --git a/asyncgit/src/diff.rs b/asyncgit/src/diff.rs index b60d0b41..07d60445 100644 --- a/asyncgit/src/diff.rs +++ b/asyncgit/src/diff.rs @@ -96,7 +96,9 @@ impl AsyncDiff { } if notify { - sender.send(AsyncNotification::Diff).unwrap(); + sender + .send(AsyncNotification::Diff) + .expect("error sending diff"); } }); diff --git a/asyncgit/src/status.rs b/asyncgit/src/status.rs index f190c39b..c1a91b0e 100644 --- a/asyncgit/src/status.rs +++ b/asyncgit/src/status.rs @@ -76,7 +76,9 @@ impl AsyncStatus { } if notify { - sender.send(AsyncNotification::Status).unwrap(); + sender + .send(AsyncNotification::Status) + .expect("error sending status"); } });