Skip to content

Commit 9592fe2

Browse files
committed
core, graph: Remove unnecessary code
1 parent 989f1d8 commit 9592fe2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/subgraph/registrar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ fn resolve_subgraph_chain_blocks(
531531
min_start_block => Box::new(
532532
ethereum_adapter
533533
.block_pointer_from_number(logger, min_start_block - 1)
534-
.map(move |block_ptr| Some(block_ptr))
534+
.map(Some)
535535
.map_err(move |_| {
536536
SubgraphRegistrarError::ManifestValidationError(vec![
537537
SubgraphManifestValidationError::BlockNotFound(

graph/src/data/store/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ impl TryFrom<Value> for Option<H256> {
396396
match value {
397397
Value::Bytes(bytes) => {
398398
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"))?))
400400
}
401401
Value::String(s) => Ok(Some(H256::from_str(s.as_str())?)),
402402
Value::Null => Ok(None),

0 commit comments

Comments
 (0)