diff options
Diffstat (limited to 'mlua_derive/src/lib.rs')
-rw-r--r-- | mlua_derive/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlua_derive/src/lib.rs b/mlua_derive/src/lib.rs index b735b6f..a1e70d6 100644 --- a/mlua_derive/src/lib.rs +++ b/mlua_derive/src/lib.rs @@ -14,7 +14,7 @@ pub fn lua_module(attr: TokenStream, item: TokenStream) -> TokenStream { let args = parse_macro_input!(attr as AttributeArgs); let item = parse_macro_input!(item as ItemFn); - if args.len() > 0 { + if !args.is_empty() { let err = Error::new(Span::call_site(), "the number of arguments must be zero") .to_compile_error(); return err.into(); |