From 8ac0326f1beeef1c333b294e32051a94cceba32e Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Tue, 8 Oct 2024 21:59:40 +0700 Subject: [PATCH] Fix lints --- libwasmvm/src/cache.rs | 8 +++----- types/config_test.go | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/libwasmvm/src/cache.rs b/libwasmvm/src/cache.rs index 89031e6d5..41452f62b 100644 --- a/libwasmvm/src/cache.rs +++ b/libwasmvm/src/cache.rs @@ -455,9 +455,7 @@ mod tests { use super::*; use cosmwasm_vm::{CacheOptions, Config, Size}; - use std::{ - cmp::Ordering, collections::HashSet, iter::FromIterator, path::PathBuf, str::FromStr, - }; + use std::{cmp::Ordering, collections::HashSet, iter::FromIterator, path::PathBuf}; use tempfile::TempDir; static HACKATOM: &[u8] = include_bytes!("../../testdata/hackatom.wasm"); @@ -750,7 +748,7 @@ mod tests { let mut error_msg = UnmanagedVector::default(); let config = Config::new(CacheOptions::new( - &dir, + dir, capabilities, Size::mebi(512), Size::mebi(32), @@ -943,7 +941,7 @@ mod tests { // Init cache let mut error_msg = UnmanagedVector::default(); let config = Config::new(CacheOptions::new( - &dir, + dir, [capabilities], Size::mebi(512), Size::mebi(32), diff --git a/types/config_test.go b/types/config_test.go index 37031d8f9..1ca90bf03 100644 --- a/types/config_test.go +++ b/types/config_test.go @@ -33,5 +33,4 @@ func TestConfigJSON(t *testing.T) { bz, err := json.Marshal(config) require.NoError(t, err) assert.Equal(t, expected, string(bz)) - }