Skip to content

Commit 0bd36b4

Browse files
committed
Make error::Error non_exhaustive
1 parent e0da6ac commit 0bd36b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::sync::Arc;
99

1010
/// Error type returned by `mlua` methods.
1111
#[derive(Debug, Clone)]
12+
#[non_exhaustive]
1213
pub enum Error {
1314
/// Syntax error while parsing Lua source code.
1415
SyntaxError {

0 commit comments

Comments
 (0)