From 866fe3f4468170697e25675d362c94876e60a361 Mon Sep 17 00:00:00 2001 From: Alexander Gonzalez Date: Tue, 19 Mar 2024 20:04:11 +0100 Subject: [PATCH] lint(fmt): fix formatting --- contracts/token/src/erc20/mod.rs | 3 ++- lib/wavm-shims/src/lib.rs | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/contracts/token/src/erc20/mod.rs b/contracts/token/src/erc20/mod.rs index 233e6129..925d58e2 100644 --- a/contracts/token/src/erc20/mod.rs +++ b/contracts/token/src/erc20/mod.rs @@ -352,7 +352,6 @@ impl ERC20 { #[cfg(test)] mod tests { - use crate::erc20::ERC20; use alloy_primitives::{address, Address, U256}; use stylus_sdk::{ msg, @@ -361,6 +360,8 @@ mod tests { #[allow(unused_imports)] use wavm_shims::*; + use crate::erc20::ERC20; + fn init_token() -> ERC20 { let root = U256::ZERO; let token = ERC20 { diff --git a/lib/wavm-shims/src/lib.rs b/lib/wavm-shims/src/lib.rs index 6e6d2a12..6a69dab1 100644 --- a/lib/wavm-shims/src/lib.rs +++ b/lib/wavm-shims/src/lib.rs @@ -1,9 +1,7 @@ //! Shim crate to mock Stylus's `vm_hooks`. +use std::{collections::HashMap, ptr, slice, sync::Mutex}; + use once_cell::sync::Lazy; -use std::collections::HashMap; -use std::ptr; -use std::slice; -use std::sync::Mutex; use tiny_keccak::{Hasher, Keccak}; pub const WORD_BYTES: usize = 32;