diff options
author | Alan Du <[email protected]> | 2018-10-16 18:31:16 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2018-10-18 00:42:23 +0100 |
commit | 2ae9dfa812ccf18867373f77a106161378a6d91d (patch) | |
tree | c3ff8017bfa41dd31de37de6716eb97db132ebcf /crates/ra_analysis/tests | |
parent | 2268a2f8c6557301ecdcaeb4074331a0bd37dccd (diff) |
clippy: Fix new_ret_no_self
Diffstat (limited to 'crates/ra_analysis/tests')
-rw-r--r-- | crates/ra_analysis/tests/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/tests/tests.rs b/crates/ra_analysis/tests/tests.rs index e0c637d65..3302e1151 100644 --- a/crates/ra_analysis/tests/tests.rs +++ b/crates/ra_analysis/tests/tests.rs | |||
@@ -62,7 +62,7 @@ fn get_signature(text: &str) -> (FnDescriptor, Option<usize>) { | |||
62 | let (offset, code) = extract_offset(text); | 62 | let (offset, code) = extract_offset(text); |
63 | let code = code.as_str(); | 63 | let code = code.as_str(); |
64 | 64 | ||
65 | let (_handle, token) = JobHandle::new(); | 65 | let (_handle, token) = JobHandle::new_pair(); |
66 | let snap = analysis(&[("/lib.rs", code)]); | 66 | let snap = analysis(&[("/lib.rs", code)]); |
67 | 67 | ||
68 | snap.resolve_callable(FileId(1), offset, &token).unwrap() | 68 | snap.resolve_callable(FileId(1), offset, &token).unwrap() |
@@ -71,7 +71,7 @@ fn get_signature(text: &str) -> (FnDescriptor, Option<usize>) { | |||
71 | #[test] | 71 | #[test] |
72 | fn test_resolve_module() { | 72 | fn test_resolve_module() { |
73 | let snap = analysis(&[("/lib.rs", "mod foo;"), ("/foo.rs", "")]); | 73 | let snap = analysis(&[("/lib.rs", "mod foo;"), ("/foo.rs", "")]); |
74 | let (_handle, token) = JobHandle::new(); | 74 | let (_handle, token) = JobHandle::new_pair(); |
75 | let symbols = snap.approximately_resolve_symbol(FileId(1), 4.into(), &token); | 75 | let symbols = snap.approximately_resolve_symbol(FileId(1), 4.into(), &token); |
76 | assert_eq_dbg( | 76 | assert_eq_dbg( |
77 | r#"[(FileId(2), FileSymbol { name: "foo", node_range: [0; 0), kind: MODULE })]"#, | 77 | r#"[(FileId(2), FileSymbol { name: "foo", node_range: [0; 0), kind: MODULE })]"#, |