From 3279697402d98a7373f244d30fbe65883f874acb Mon Sep 17 00:00:00 2001 From: Jordan Oroshiba Date: Mon, 22 Apr 2024 11:11:47 -0700 Subject: [PATCH] review updates --- crates/astria-core/src/sequencerblock/v1alpha1/celestia.rs | 4 ++-- crates/astria-sequencer/src/grpc/sequencer.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/astria-core/src/sequencerblock/v1alpha1/celestia.rs b/crates/astria-core/src/sequencerblock/v1alpha1/celestia.rs index 05d27f03c1..117a848a03 100644 --- a/crates/astria-core/src/sequencerblock/v1alpha1/celestia.rs +++ b/crates/astria-core/src/sequencerblock/v1alpha1/celestia.rs @@ -437,8 +437,8 @@ impl UncheckedCelestiaSequencerBlob { SequencerBlockHeader::try_from_raw(header).map_err(CelestiaSequencerBlobError::header) }?; let rollup_ids: Vec<_> = rollup_ids - .into_iter() - .map(|raw| RollupId::try_from_raw(&raw)) + .iter() + .map(RollupId::try_from_raw) .collect::>() .map_err(CelestiaSequencerBlobError::rollup_ids)?; diff --git a/crates/astria-sequencer/src/grpc/sequencer.rs b/crates/astria-sequencer/src/grpc/sequencer.rs index dbb1657ba7..0ae42efd4c 100644 --- a/crates/astria-sequencer/src/grpc/sequencer.rs +++ b/crates/astria-sequencer/src/grpc/sequencer.rs @@ -88,8 +88,8 @@ impl SequencerService for SequencerServer { let rollup_ids = request .rollup_ids - .into_iter() - .map(|raw| RollupId::try_from_raw(&raw)) + .iter() + .map(RollupId::try_from_raw) .collect::, _>>() .map_err(|e| Status::invalid_argument(format!("invalid rollup ID: {e}")))?;