aboutsummaryrefslogtreecommitdiff
path: root/crates/base_db
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-06-03 22:12:35 +0100
committerFlorian Diebold <[email protected]>2021-06-12 22:04:43 +0100
commit20487a1b4a7c2fdffdb1de61c7837ee6f673f21a (patch)
treeda558f908e41a890ed99f0166d23d1c2078e0053 /crates/base_db
parent124123a53bfbd32be5d63315885d2d5c9e3a1ee6 (diff)
Fix coercion in match with expected type
Plus add infrastructure to test type mismatches without expect.
Diffstat (limited to 'crates/base_db')
-rw-r--r--crates/base_db/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/base_db/src/lib.rs b/crates/base_db/src/lib.rs
index 54baa3a63..d26f8f180 100644
--- a/crates/base_db/src/lib.rs
+++ b/crates/base_db/src/lib.rs
@@ -42,7 +42,7 @@ pub struct FilePosition {
42 pub offset: TextSize, 42 pub offset: TextSize,
43} 43}
44 44
45#[derive(Clone, Copy, Debug, Eq, PartialEq)] 45#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
46pub struct FileRange { 46pub struct FileRange {
47 pub file_id: FileId, 47 pub file_id: FileId,
48 pub range: TextRange, 48 pub range: TextRange,