From 52fd19621caa62ddd7d3f29b69a5133650bc1294 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 25 Feb 2020 18:57:47 +0100 Subject: Remove code duplication in tests --- crates/test_utils/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/test_utils') 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)> { Some((TextRange::from_to(start, end), text)) } +#[derive(Clone, Copy)] pub enum RangeOrOffset { Range(TextRange), Offset(TextUnit), -- cgit v1.2.3