aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/server/src')
-rw-r--r--crates/server/src/path_map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/server/src/path_map.rs b/crates/server/src/path_map.rs
index de904e9db..282a03271 100644
--- a/crates/server/src/path_map.rs
+++ b/crates/server/src/path_map.rs
@@ -99,8 +99,8 @@ mod test {
99 #[test] 99 #[test]
100 fn test_resolve() { 100 fn test_resolve() {
101 let mut m = PathMap::new(); 101 let mut m = PathMap::new();
102 let id1 = m.get_or_insert(PathBuf::from("/foo")); 102 let id1 = m.get_or_insert(PathBuf::from("/foo"), Root::Workspace);
103 let id2 = m.get_or_insert(PathBuf::from("/foo/bar.rs")); 103 let id2 = m.get_or_insert(PathBuf::from("/foo/bar.rs"), Root::Workspace);
104 assert_eq!( 104 assert_eq!(
105 m.resolve(id1, &RelativePath::new("bar.rs")), 105 m.resolve(id1, &RelativePath::new("bar.rs")),
106 Some(id2), 106 Some(id2),