Skip to content

Commit

Permalink
vec to slice lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fbsobreira committed Nov 19, 2024
1 parent 16b23e9 commit cb39af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm-executor-wasmer/src/wasmer_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn get_memories(wasmer_instance: &wasmer::Instance) -> Vec<(&String, &wasmer::Me
memories
}

fn validate_memories(memories: &Vec<(&String, &wasmer::Memory)>) -> Result<(), ExecutorError> {
fn validate_memories(memories: &[(&String, &wasmer::Memory)]) -> Result<(), ExecutorError> {
if memories.is_empty() {
return Err(Box::new(ServiceError::new(
"no memory declared in smart contract",
Expand Down

0 comments on commit cb39af0

Please sign in to comment.