Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 'group_imports' to rustfmt config #101

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions mev-boost-rs/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ use mev_rs::{
signing::sign_builder_message,
types::{BidRequest, ExecutionPayload, SignedBlindedBeaconBlock, SignedBuilderBid},
};

use rand::seq::SliceRandom;
use std::{
collections::HashMap,
time::{SystemTime, UNIX_EPOCH},
};

use url::Url;

fn setup_logging() {
Expand Down
5 changes: 2 additions & 3 deletions mev-rs/src/blinded_block_provider/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#[cfg(feature = "api")]
mod api;

#[cfg(feature = "api")]
pub use {api::client::Client, api::server::Server};

use crate::{
error::Error,
types::{
Expand All @@ -12,6 +9,8 @@ use crate::{
},
};
use async_trait::async_trait;
#[cfg(feature = "api")]
pub use {api::client::Client, api::server::Server};

#[async_trait]
pub trait BlindedBlockProvider {
Expand Down
1 change: 0 additions & 1 deletion mev-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub mod types;
mod validator_registry;

pub use blinded_block_provider::BlindedBlockProvider;

pub use error::Error;
pub use network::*;
pub use proposer_scheduler::ProposerScheduler;
Expand Down
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
reorder_imports = true
imports_granularity = "Crate"
group_imports = "One"
jacobkaufmann marked this conversation as resolved.
Show resolved Hide resolved
use_small_heuristics = "Max"
comment_width = 100
wrap_comments = true
Expand Down