From aa7fc05ea18822b2507f364e55cbe3bf01192240 Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Sat, 15 Dec 2018 00:10:07 -0600 Subject: [PATCH] Fix clippy warning length comparison to one --- src/webassembly/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webassembly/mod.rs b/src/webassembly/mod.rs index 31eb4d979..0c78de8a7 100644 --- a/src/webassembly/mod.rs +++ b/src/webassembly/mod.rs @@ -159,7 +159,7 @@ fn store_module_arguments(path: &str, args: Vec<&str>, instance: &mut Instance) let argc = args.len() + 1; let (argv_offset, argv_slice): (_, &mut [u32]) = unsafe { allocate_on_stack(((argc + 1) * 4) as u32, instance) }; - assert!(argv_slice.len() >= 1); + assert!(!argv_slice.is_empty()); argv_slice[0] = unsafe { allocate_cstr_on_stack(path, instance).0 };