diff --git a/src/error.rs b/src/error.rs index 3a0398a..c9cc7e1 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,18 +1,18 @@ #[derive(Debug)] pub enum Error { - RLua(rlua::Error), + Lua(rlua::Error), } impl From for Error { fn from(error: rlua::Error) -> Self { - Error::RLua(error) + Error::Lua(error) } } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let res = match self { - Error::RLua(e) => format!("rlua error:\n{:#?}", e), + Error::Lua(e) => format!("rlua error:\n{:#?}", e), }; write!(f, "{}", res) }