Only allocate memory if removing text for lesser blocks.
This commit is contained in:
@@ -1576,7 +1576,7 @@ fn compare_example_block<'b, 's>(
|
||||
[],
|
||||
(
|
||||
EmacsField::Required(":value"),
|
||||
|r| Some(r.contents.as_str()),
|
||||
|r| Some(&r.contents),
|
||||
compare_property_quoted_string
|
||||
),
|
||||
(
|
||||
@@ -1654,7 +1654,7 @@ fn compare_export_block<'b, 's>(
|
||||
),
|
||||
(
|
||||
EmacsField::Required(":value"),
|
||||
|r| Some(r.contents.as_str()),
|
||||
|r| Some(&r.contents),
|
||||
compare_property_quoted_string
|
||||
)
|
||||
) {
|
||||
@@ -1702,7 +1702,7 @@ fn compare_src_block<'b, 's>(
|
||||
),
|
||||
(
|
||||
EmacsField::Required(":value"),
|
||||
|r| Some(r.contents.as_str()),
|
||||
|r| Some(&r.contents),
|
||||
compare_property_quoted_string
|
||||
),
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user