diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-12 20:28:42 +0100 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-12 20:28:42 +0100 |
| commit | 4a11fd2bd6329af21f8a3c60d70afc973f6518a4 (patch) | |
| tree | 972cb85bbfe33f8804533673d6e9d6c57e2016e5 /src/error.rs | |
| parent | cae3d331d63916398edc0f3808c1471a78c8fb04 (diff) | |
enough to run my website
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index 51803c7..bf44a21 100644 --- a/src/error.rs +++ b/src/error.rs @@ -3,7 +3,6 @@ use std::fmt::{self, Display, Formatter}; #[derive(Debug, Clone, Eq, PartialEq)] pub enum LuaXError { InvalidStart, // used internally - MissingField(String), NonTableChildren, NonTableAttrs, UnexpectedCharacter(char), @@ -19,7 +18,6 @@ impl Display for LuaXError { fn fmt(&self, f: &mut Formatter) -> fmt::Result { match self { LuaXError::InvalidStart => write!(f, "Invalid start"), - LuaXError::MissingField(field) => write!(f, "Missing required field: {}", field), LuaXError::NonTableChildren => write!(f, "Children must be tables"), LuaXError::NonTableAttrs => write!(f, "Attrs must be tables"), LuaXError::UnexpectedCharacter(c) => write!(f, "Unexpected character: '{}'", c), |
