diff --git a/crates/editor/src/display_map/block_map.rs b/crates/editor/src/display_map/block_map.rs index 630b96d50c..5302bfa73b 100644 --- a/crates/editor/src/display_map/block_map.rs +++ b/crates/editor/src/display_map/block_map.rs @@ -136,12 +136,12 @@ impl From for EntityId { } } -impl Into for BlockId { - fn into(self) -> ElementId { - match self { - Self::Custom(CustomBlockId(id)) => ("Block", id).into(), - Self::ExcerptHeader(id) => ("ExcerptHeader", EntityId::from(id)).into(), - Self::ExcerptFooter(id) => ("ExcerptFooter", EntityId::from(id)).into(), +impl From for ElementId { + fn from(value: BlockId) -> Self { + match value { + BlockId::Custom(CustomBlockId(id)) => ("Block", id).into(), + BlockId::ExcerptHeader(id) => ("ExcerptHeader", EntityId::from(id)).into(), + BlockId::ExcerptFooter(id) => ("ExcerptFooter", EntityId::from(id)).into(), } } }