diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 3e458a6..e891da2 100644 --- a/src/error.rs +++ b/src/error.rs @@ -64,6 +64,12 @@ impl From<&str> for Error { } } +impl From<String> for Error { + fn from(s: String) -> Error { + Error::Error(s) + } +} + impl From<clap::Error> for Error { fn from(e: clap::Error) -> Error { Error::ClapError(e) |