mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-29 22:51:33 +02:00
Add missing impl for StdError
This commit is contained in:
parent
9e09c98f96
commit
3c1eaa51f7
@ -11,7 +11,13 @@ pub enum Error {
|
|||||||
Notify(notify::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<globset::Error> for Error {
|
impl From<globset::Error> for Error {
|
||||||
fn from(err: globset::Error) -> Self {
|
fn from(err: globset::Error) -> Self {
|
||||||
|
Loading…
Reference in New Issue
Block a user