From e98d8cd255ab5c2fee873a58af6c2c3ad561dab4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 2 Sep 2018 16:36:03 +0300 Subject: nail down runnables --- crates/libanalysis/tests/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/libanalysis/tests/tests.rs') diff --git a/crates/libanalysis/tests/tests.rs b/crates/libanalysis/tests/tests.rs index c098c8e8c..4fae7c313 100644 --- a/crates/libanalysis/tests/tests.rs +++ b/crates/libanalysis/tests/tests.rs @@ -126,7 +126,7 @@ fn test_resolve_crate_root() { (1, "/lib.rs"), (2, "/foo.rs"), ])); - assert!(snap.crate_root(FileId(2)).is_empty()); + assert!(snap.crate_for(FileId(2)).is_empty()); let crate_graph = CrateGraph { crate_roots: { @@ -142,7 +142,7 @@ fn test_resolve_crate_root() { (2, "/foo.rs"), ])); assert_eq!( - snap.crate_root(FileId(2)), + snap.crate_for(FileId(2)), vec![CrateId(1)], ); } -- cgit v1.2.3