Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Oct 8, 2024
1 parent df582f0 commit a2d2de5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
22 changes: 10 additions & 12 deletions libwasmvm/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -470,7 +468,7 @@ mod tests {

let mut error_msg = UnmanagedVector::default();
let config = Config::new(CacheOptions::new(
&dir,
dir,
[capabilities],
Size::mebi(512),
Size::mebi(32),
Expand All @@ -490,7 +488,7 @@ mod tests {

let mut error_msg = UnmanagedVector::default();
let config = Config::new(CacheOptions::new(
&dir,
dir,
[capabilities],
Size::mebi(512),
Size::mebi(32),
Expand All @@ -513,7 +511,7 @@ mod tests {

let mut error_msg = UnmanagedVector::default();
let config = Config::new(CacheOptions::new(
&dir,
dir,
[capabilities],
Size::mebi(512),
Size::mebi(32),
Expand Down Expand Up @@ -543,7 +541,7 @@ mod tests {

let mut error_msg = UnmanagedVector::default();
let config = Config::new(CacheOptions::new(
&dir,
dir,
[capabilities],
Size::mebi(512),
Size::mebi(32),
Expand Down Expand Up @@ -599,7 +597,7 @@ mod tests {

let mut error_msg = UnmanagedVector::default();
let config = Config::new(CacheOptions::new(
&dir,
dir,
[capabilities],
Size::mebi(512),
Size::mebi(32),
Expand Down Expand Up @@ -641,7 +639,7 @@ mod tests {

let mut error_msg = UnmanagedVector::default();
let config = Config::new(CacheOptions::new(
&dir,
dir,
[capabilities],
Size::mebi(512),
Size::mebi(32),
Expand Down Expand Up @@ -691,7 +689,7 @@ mod tests {

let mut error_msg = UnmanagedVector::default();
let config = Config::new(CacheOptions::new(
&dir,
dir,
[capabilities],
Size::mebi(512),
Size::mebi(32),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down
1 change: 0 additions & 1 deletion types/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ func TestConfigJSON(t *testing.T) {
bz, err := json.Marshal(config)
require.NoError(t, err)
assert.Equal(t, expected, string(bz))

}

0 comments on commit a2d2de5

Please sign in to comment.