Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJepsen committed Nov 10, 2023
1 parent 6f04740 commit cd9c9cd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions arbiter-core/src/data_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
//! * `E` - Type that implements the `EthLogDecode`, `Debug`, `Serialize`
//! traits, and has a static lifetime.

use super::*;
use std::{
collections::BTreeMap, fmt::Debug, io::BufWriter, marker::PhantomData, mem::transmute,
sync::Arc,
Expand All @@ -38,6 +37,7 @@ use polars::{
use serde::Serialize;
use serde_json::Value;

use super::*;
use crate::{
environment::Broadcast,
middleware::{cast::revm_logs_to_ethers_logs, errors::RevmMiddlewareError, RevmMiddleware},
Expand Down Expand Up @@ -248,8 +248,6 @@ impl EventLogger {
"`EventLogger` dumping event data into: {:?}",
file_path.to_str().unwrap().to_owned()
);

Check warning on line 250 in arbiter-core/src/data_collection.rs

View check run for this annotation

Codecov / codecov/patch

arbiter-core/src/data_collection.rs#L248-L250

Added lines #L248 - L250 were not covered by tests
let file = std::fs::File::create(file_path).unwrap();
let writer = BufWriter::new(file);
// match the file output type and write to correct file using the right file
// type
match file_type {
Expand Down
3 changes: 1 addition & 2 deletions arbiter-core/src/environment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

#![warn(missing_docs, unsafe_code)]

use super::*;

use std::{
convert::Infallible,
fmt::Debug,
Expand All @@ -51,6 +49,7 @@ use revm::{
use serde::{Deserialize, Serialize};
use thiserror::Error;

use super::*;
use crate::math::SeededPoisson;
#[cfg_attr(doc, doc(hidden))]
#[cfg_attr(doc, allow(unused_imports))]
Expand Down
1 change: 0 additions & 1 deletion arbiter-core/src/middleware/connection.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Messengers/connections to the underlying EVM in the environment.
use super::*;
use std::{
collections::HashMap,
fmt::Debug,
Expand Down
2 changes: 1 addition & 1 deletion arbiter-core/src/middleware/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//! - `FilterReceiver`: Facilitates event watching based on certain filters.

#![warn(missing_docs)]
use super::*;
use std::{
collections::HashMap,
fmt::Debug,
Expand Down Expand Up @@ -50,6 +49,7 @@ use serde::{de::DeserializeOwned, Serialize};
// use async_trait::async_trait;
use thiserror::Error;

use super::*;
use crate::environment::{cheatcodes::*, instruction::*, Broadcast, Environment};

/// Possible errors thrown by interacting with the revm middleware client.
Expand Down
6 changes: 3 additions & 3 deletions arbiter-core/src/middleware/nonce_middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
//! Main components:
//! - [`NonceManagerMiddleware`]: The core middleware implementation.
//! - [`NonceManagerError`]: Error type for the middleware.
use super::*;

use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};

use async_trait::async_trait;
use ethers::{
providers::{Middleware, MiddlewareError, PendingTransaction},
types::{transaction::eip2718::TypedTransaction, U256},
types::transaction::eip2718::TypedTransaction,
};
use thiserror::Error;

use super::*;

#[derive(Debug)]
/// Middleware used for calculating nonces locally, useful for signing multiple
/// consecutive transactions without waiting for them to hit the mempool
Expand Down

0 comments on commit cd9c9cd

Please sign in to comment.