From e44a6bcc8208f9d906febf9278120b75a6af67f9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 4 Sep 2018 12:25:23 +0300 Subject: for types in bounds --- crates/server/src/path_map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/server/src') 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 { #[test] fn test_resolve() { let mut m = PathMap::new(); - let id1 = m.get_or_insert(PathBuf::from("/foo")); - let id2 = m.get_or_insert(PathBuf::from("/foo/bar.rs")); + let id1 = m.get_or_insert(PathBuf::from("/foo"), Root::Workspace); + let id2 = m.get_or_insert(PathBuf::from("/foo/bar.rs"), Root::Workspace); assert_eq!( m.resolve(id1, &RelativePath::new("bar.rs")), Some(id2), -- cgit v1.2.3