diff options
author | Aleksey Kladov <[email protected]> | 2020-02-26 10:59:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-26 10:59:59 +0000 |
commit | 21fa338bd61bf6d4959b7f052d4f89d4594e419b (patch) | |
tree | 11c6260becae314db92d671d84e58830971c948b /crates/test_utils | |
parent | ae0aeb1b23aa4bc96a7113de784799365c2b4358 (diff) | |
parent | 52fd19621caa62ddd7d3f29b69a5133650bc1294 (diff) |
Merge pull request #3316 from matklad/dedup
Remove code duplication in tests
Diffstat (limited to 'crates/test_utils')
-rw-r--r-- | crates/test_utils/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index e6e8d7110..69deddcb5 100644 --- a/crates/test_utils/src/lib.rs +++ b/crates/test_utils/src/lib.rs | |||
@@ -83,6 +83,7 @@ fn try_extract_range(text: &str) -> Option<(TextRange, String)> { | |||
83 | Some((TextRange::from_to(start, end), text)) | 83 | Some((TextRange::from_to(start, end), text)) |
84 | } | 84 | } |
85 | 85 | ||
86 | #[derive(Clone, Copy)] | ||
86 | pub enum RangeOrOffset { | 87 | pub enum RangeOrOffset { |
87 | Range(TextRange), | 88 | Range(TextRange), |
88 | Offset(TextUnit), | 89 | Offset(TextUnit), |