From 268e1a82fa61531edaaec472dbd5cd7df044176d Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Wed, 15 Dec 2021 22:33:31 -0800 Subject: 16, yay --- lib/src/error.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/src') diff --git a/lib/src/error.rs b/lib/src/error.rs index 4f594b7..ccf01ee 100644 --- a/lib/src/error.rs +++ b/lib/src/error.rs @@ -2,6 +2,7 @@ pub enum Error { IO(std::io::Error), Parse, + Unspecified, } impl std::error::Error for Error { } @@ -11,6 +12,7 @@ impl std::fmt::Display for Error { match self { Error::IO(e) => e.fmt(f), Error::Parse => f.write_str("Parse error"), + Error::Unspecified => f.write_str("Unspecified error (bad luck!)"), } } } -- cgit 1.4.1