From 0bd36b42e7d416f2821950fb43b0086643366818 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Sun, 11 Apr 2021 14:21:20 +0100 Subject: [PATCH] Make error::Error non_exhaustive --- src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.rs b/src/error.rs index 029d629..421518a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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 {