aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-04 10:25:23 +0100
committerAleksey Kladov <[email protected]>2018-09-04 10:25:23 +0100
commite44a6bcc8208f9d906febf9278120b75a6af67f9 (patch)
tree0b6a9e8d5c9527d9bd1ed266213d591ea957623c /crates/server/src
parent3a017aaa52fc41316b5dd2cd90b5171ca869697a (diff)
for types in bounds
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),