Skip to content

Commit

Permalink
clippy, fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
laudiacay committed Aug 1, 2023
1 parent c4f9ac7 commit 9b6ad69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions crates/strategies/mev-share-uni-arb/src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ impl<M: Middleware + 'static, S: Signer + 'static> Strategy<Event, Action>
"Found a v3 pool match at address {:?}, submitting bundles",
address
);
self.generate_bundles(address, event.hash).await
self.generate_bundles(address, event.hash)
.await
.into_iter()
.map(|bundle| Action::SubmitBundle(bundle))
.map(Action::SubmitBundle)
.collect()
}
}
Expand Down
7 changes: 5 additions & 2 deletions crates/strategies/opensea-sudo-arb/src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ impl<M: Middleware + 'static> Strategy<Event, Action> for OpenseaSudoArb<M> {
// Process incoming events, seeing if we can arb new orders, and updating the internal state on new blocks.
async fn process_event(&mut self, event: Event) -> Vec<Action> {
match event {
Event::OpenseaOrder(order) => self.process_order_event(*order).await.map_or(vec![], |a| vec![a]),
Event::OpenseaOrder(order) => self
.process_order_event(*order)
.await
.map_or(vec![], |a| vec![a]),
Event::NewBlock(block) => match self.process_new_block_event(block).await {
Ok(_) => vec![],
Err(e) => {
Expand Down Expand Up @@ -217,7 +220,7 @@ impl<M: Middleware + 'static> OpenseaSudoArb<M> {
let quotes = self.quoter.get_multiple_sell_quotes(pools.clone()).await?;
let res = pools
.into_iter()
.zip(quotes.into_iter())
.zip(quotes)
.collect::<Vec<(H160, SellQuote)>>();
Ok(res)
}
Expand Down

0 comments on commit 9b6ad69

Please sign in to comment.