Skip to content

Commit

Permalink
Pull in nightly rust-fmt, use vid rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pls148 committed Feb 28, 2025
1 parent 047f512 commit 4c5479e
Show file tree
Hide file tree
Showing 234 changed files with 2,518 additions and 2,544 deletions.
4 changes: 2 additions & 2 deletions builder/src/bin/permissionless-builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ async fn main() -> anyhow::Result<()> {
match (base, upgrade) {
(FeeVersion::VERSION, MarketplaceVersion::VERSION) => {
run::<SequencerVersions<FeeVersion, MarketplaceVersion>>(genesis, opt).await
}
},
(FeeVersion::VERSION, _) => run::<SequencerVersions<FeeVersion, V0_0>>(genesis, opt).await,
(MarketplaceVersion::VERSION, _) => {
run::<SequencerVersions<MarketplaceVersion, V0_0>>(genesis, opt).await
}
},
_ => panic!(
"Invalid base ({base}) and upgrade ({upgrade}) versions specified in the toml file."
),
Expand Down
8 changes: 4 additions & 4 deletions builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ pub mod testing {
{
Ok(response) => {
tracing::info!("Received txn submitted response : {:?}", response);
}
},
Err(e) => {
panic!("Error submitting private transaction {:?}", e);
}
},
}

let seed = [207_u8; 32];
Expand Down Expand Up @@ -513,10 +513,10 @@ pub mod testing {
Ok(response) => {
tracing::info!("Received Builder Key : {:?}", response);
assert_eq!(response, builder_pub_key);
}
},
Err(e) => {
panic!("Error getting builder key {:?}", e);
}
},
}
}
}
3 changes: 1 addition & 2 deletions builder/src/non_permissioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ use hotshot_types::{
node_implementation::Versions, EncodeBytes,
},
};
use marketplace_builder_shared::block::ParentBlockReferences;
use marketplace_builder_shared::utils::EventServiceStream;
use marketplace_builder_shared::{block::ParentBlockReferences, utils::EventServiceStream};
use sequencer::{catchup::StatePeers, L1Params, SequencerApiVersion};
use std::sync::Arc;
use tide_disco::Url;
Expand Down
2 changes: 1 addition & 1 deletion client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl SequencerClient {
} else {
sleep(Duration::from_millis(200)).await;
}
}
},
}
};

Expand Down
38 changes: 19 additions & 19 deletions contract-bindings-alloy/src/erc1967proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub mod ERC1967Proxy {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
>(_) => {},
}
}
#[automatically_derived]
Expand Down Expand Up @@ -209,7 +209,7 @@ pub mod ERC1967Proxy {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
>(_) => {},
}
}
#[automatically_derived]
Expand Down Expand Up @@ -275,7 +275,7 @@ pub mod ERC1967Proxy {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
>(_) => {},
}
}
#[automatically_derived]
Expand Down Expand Up @@ -335,7 +335,7 @@ pub mod ERC1967Proxy {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
>(_) => {},
}
}
#[automatically_derived]
Expand Down Expand Up @@ -501,7 +501,7 @@ pub mod ERC1967Proxy {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
>(_) => {},
}
}
#[automatically_derived]
Expand Down Expand Up @@ -580,16 +580,16 @@ pub mod ERC1967Proxy {
match self {
Self::AddressEmptyCode(_) => {
<AddressEmptyCode as alloy_sol_types::SolError>::SELECTOR
}
},
Self::ERC1967InvalidImplementation(_) => {
<ERC1967InvalidImplementation as alloy_sol_types::SolError>::SELECTOR
}
},
Self::ERC1967NonPayable(_) => {
<ERC1967NonPayable as alloy_sol_types::SolError>::SELECTOR
}
},
Self::FailedInnerCall(_) => {
<FailedInnerCall as alloy_sol_types::SolError>::SELECTOR
}
},
}
}
#[inline]
Expand Down Expand Up @@ -674,37 +674,37 @@ pub mod ERC1967Proxy {
match self {
Self::AddressEmptyCode(inner) => {
<AddressEmptyCode as alloy_sol_types::SolError>::abi_encoded_size(inner)
}
},
Self::ERC1967InvalidImplementation(inner) => {
<ERC1967InvalidImplementation as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
},
Self::ERC1967NonPayable(inner) => {
<ERC1967NonPayable as alloy_sol_types::SolError>::abi_encoded_size(inner)
}
},
Self::FailedInnerCall(inner) => {
<FailedInnerCall as alloy_sol_types::SolError>::abi_encoded_size(inner)
}
},
}
}
#[inline]
fn abi_encode_raw(&self, out: &mut alloy_sol_types::private::Vec<u8>) {
match self {
Self::AddressEmptyCode(inner) => {
<AddressEmptyCode as alloy_sol_types::SolError>::abi_encode_raw(inner, out)
}
},
Self::ERC1967InvalidImplementation(inner) => {
<ERC1967InvalidImplementation as alloy_sol_types::SolError>::abi_encode_raw(
inner, out,
)
}
},
Self::ERC1967NonPayable(inner) => {
<ERC1967NonPayable as alloy_sol_types::SolError>::abi_encode_raw(inner, out)
}
},
Self::FailedInnerCall(inner) => {
<FailedInnerCall as alloy_sol_types::SolError>::abi_encode_raw(inner, out)
}
},
}
}
}
Expand Down Expand Up @@ -739,7 +739,7 @@ pub mod ERC1967Proxy {
Some(<Upgraded as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<Upgraded as alloy_sol_types::SolEvent>::decode_raw_log(topics, data, validate)
.map(Self::Upgraded)
}
},
_ => alloy_sol_types::private::Err(alloy_sol_types::Error::InvalidLog {
name: <Self as alloy_sol_types::SolEventInterface>::NAME,
log: alloy_sol_types::private::Box::new(
Expand All @@ -763,7 +763,7 @@ pub mod ERC1967Proxy {
match self {
Self::Upgraded(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
},
}
}
}
Expand Down
Loading

0 comments on commit 4c5479e

Please sign in to comment.