From 3c1eaa51f7d26361b3b26a19dc9d520e302ac14d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sun, 9 Sep 2018 10:38:07 +1200 Subject: [PATCH] Add missing impl for StdError --- src/error.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 642a7fe..c406505 100644 --- a/src/error.rs +++ b/src/error.rs @@ -11,7 +11,13 @@ pub enum Error { Notify(notify::Error), } -impl StdError for Error {} +impl StdError for Error { + fn description (&self) -> &str { + // This method is soft-deprecated and shouldn't be used, + // see Display for the actual description. + "a watchexec error" + } +} impl From for Error { fn from(err: globset::Error) -> Self {