aboutsummaryrefslogtreecommitdiff
path: root/crates/libanalysis
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libanalysis')
-rw-r--r--crates/libanalysis/src/lib.rs1
-rw-r--r--crates/libanalysis/tests/tests.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/libanalysis/src/lib.rs b/crates/libanalysis/src/lib.rs
index 49c39e1f3..7a34d354e 100644
--- a/crates/libanalysis/src/lib.rs
+++ b/crates/libanalysis/src/lib.rs
@@ -130,6 +130,7 @@ impl WorldState {
130 } 130 }
131} 131}
132 132
133#[derive(Debug)]
133pub enum QuickFix { 134pub enum QuickFix {
134 CreateFile(PathBuf), 135 CreateFile(PathBuf),
135} 136}
diff --git a/crates/libanalysis/tests/tests.rs b/crates/libanalysis/tests/tests.rs
index b3c357b02..7c2950ccc 100644
--- a/crates/libanalysis/tests/tests.rs
+++ b/crates/libanalysis/tests/tests.rs
@@ -52,7 +52,8 @@ fn test_unresolved_module_diagnostic() {
52 let snap = world.snapshot(|_id, _path| None); 52 let snap = world.snapshot(|_id, _path| None);
53 let diagnostics = snap.diagnostics(FileId(1)).unwrap(); 53 let diagnostics = snap.diagnostics(FileId(1)).unwrap();
54 assert_eq_dbg( 54 assert_eq_dbg(
55 r#"[Diagnostic { range: [4; 7), msg: "unresolved module" }]"#, 55 r#"[(Diagnostic { range: [4; 7), msg: "unresolved module" },
56 Some(CreateFile("../foo.rs")))]"#,
56 &diagnostics, 57 &diagnostics,
57 ); 58 );
58} 59}