Make error::Error non_exhaustive

This commit is contained in:
Alex Orlenko 2021-04-11 14:21:20 +01:00
parent e0da6ac929
commit 0bd36b42e7

View file

@ -9,6 +9,7 @@ use std::sync::Arc;
/// Error type returned by `mlua` methods.
#[derive(Debug, Clone)]
#[non_exhaustive]
pub enum Error {
/// Syntax error while parsing Lua source code.
SyntaxError {