From f62c44ff0115fa448f83b8a5c9da45620886bf62 Mon Sep 17 00:00:00 2001 From: ondra05 Date: Thu, 5 May 2022 00:39:13 +0200 Subject: [PATCH] Changed error variant name to go by conventions --- ablescript/src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ablescript/src/error.rs b/ablescript/src/error.rs index 00b9033..855b213 100644 --- a/ablescript/src/error.rs +++ b/ablescript/src/error.rs @@ -17,7 +17,7 @@ pub enum ErrorKind { BfInterpretError(InterpretError), MismatchedArgumentError, MissingLhs, - IOError(io::Error), + IoError(io::Error), } impl Error { @@ -56,13 +56,13 @@ impl Display for ErrorKind { // TODO: give concrete numbers here. ErrorKind::MismatchedArgumentError => write!(f, "wrong number of function arguments"), ErrorKind::MissingLhs => write!(f, "missing expression before binary operation"), - ErrorKind::IOError(err) => write!(f, "I/O error: {}", err), + ErrorKind::IoError(err) => write!(f, "I/O error: {}", err), } } } impl From for ErrorKind { fn from(e: io::Error) -> Self { - Self::IOError(e) + Self::IoError(e) } }