File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ fn resolve_subgraph_chain_blocks(
531
531
min_start_block => Box :: new (
532
532
ethereum_adapter
533
533
. block_pointer_from_number ( logger, min_start_block - 1 )
534
- . map ( move |block_ptr| Some ( block_ptr ) )
534
+ . map ( Some )
535
535
. map_err ( move |_| {
536
536
SubgraphRegistrarError :: ManifestValidationError ( vec ! [
537
537
SubgraphManifestValidationError :: BlockNotFound (
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ impl TryFrom<Value> for Option<H256> {
396
396
match value {
397
397
Value :: Bytes ( bytes) => {
398
398
let hex = format ! ( "{}" , bytes) ;
399
- Ok ( Some ( H256 :: from_str ( hex. as_str ( ) . trim_start_matches ( "0x" ) ) ?) )
399
+ Ok ( Some ( H256 :: from_str ( hex. trim_start_matches ( "0x" ) ) ?) )
400
400
}
401
401
Value :: String ( s) => Ok ( Some ( H256 :: from_str ( s. as_str ( ) ) ?) ) ,
402
402
Value :: Null => Ok ( None ) ,
You can’t perform that action at this time.
0 commit comments