Remove an unnecessary block.
This commit is contained in:
parent
6ea2da5a28
commit
55d37ae711
@ -114,7 +114,6 @@ fn to_attr_token_stream(&self) -> AttrTokenStream {
|
|||||||
replace_ranges.sort_by_key(|(range, _)| range.start);
|
replace_ranges.sort_by_key(|(range, _)| range.start);
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
{
|
|
||||||
for [(range, tokens), (next_range, next_tokens)] in replace_ranges.array_windows() {
|
for [(range, tokens), (next_range, next_tokens)] in replace_ranges.array_windows() {
|
||||||
assert!(
|
assert!(
|
||||||
range.end <= next_range.start || range.end >= next_range.end,
|
range.end <= next_range.start || range.end >= next_range.end,
|
||||||
@ -125,7 +124,6 @@ fn to_attr_token_stream(&self) -> AttrTokenStream {
|
|||||||
next_tokens,
|
next_tokens,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Process the replace ranges, starting from the highest start
|
// Process the replace ranges, starting from the highest start
|
||||||
// position and working our way back. If have tokens like:
|
// position and working our way back. If have tokens like:
|
||||||
|
Loading…
Reference in New Issue
Block a user