aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-20 19:13:16 +0000
committerAleksey Kladov <[email protected]>2018-12-20 19:43:06 +0000
commit23b040962ff299feeef1f967bc2d5ba92b01c2bc (patch)
treebad7cb6bc8614a8c1ef19b90925dfcb5a8c57284 /crates/test_utils
parent8d7e8a175e6067e4956a23cfd0c1baf003678734 (diff)
fold curly blocks
Diffstat (limited to 'crates/test_utils')
-rw-r--r--crates/test_utils/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs
index 894a22769..1ae800d7c 100644
--- a/crates/test_utils/src/lib.rs
+++ b/crates/test_utils/src/lib.rs
@@ -98,6 +98,7 @@ pub fn extract_ranges(mut text: &str, tag: &str) -> (Vec<TextRange>, String) {
98 } 98 }
99 } 99 }
100 assert!(stack.is_empty(), "unmatched <{}>", tag); 100 assert!(stack.is_empty(), "unmatched <{}>", tag);
101 ranges.sort_by_key(|r| (r.start(), r.end()));
101 (ranges, res) 102 (ranges, res)
102} 103}
103 104