diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index b54423a..44a3d50 100644 --- a/src/error.rs +++ b/src/error.rs @@ -41,6 +41,8 @@ impl<T> From<tokio::sync::mpsc::error::SendError<T>> for Error { } } +/// Ths trait adds a `.log_err()` method on `Result<(), E>` types, +/// which dismisses the error by logging it to stderr. pub trait LogError { fn log_err(self, msg: &'static str); } |