diff options
author | Aleksey Kladov <[email protected]> | 2020-06-24 23:41:08 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-25 00:02:08 +0100 |
commit | 10ee6eb7333d1978eac4c70039162f61d6275ba3 (patch) | |
tree | 5fefc459287bd0c4cd4cffa83a3ac82b627645be /crates/rust-analyzer/src/cargo_target_spec.rs | |
parent | 012a7e57b9744bd8a40bdfe45ddb56954d559117 (diff) |
Tweak visibility
Diffstat (limited to 'crates/rust-analyzer/src/cargo_target_spec.rs')
-rw-r--r-- | crates/rust-analyzer/src/cargo_target_spec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/cargo_target_spec.rs b/crates/rust-analyzer/src/cargo_target_spec.rs index e98d0f868..e4dd5d92d 100644 --- a/crates/rust-analyzer/src/cargo_target_spec.rs +++ b/crates/rust-analyzer/src/cargo_target_spec.rs | |||
@@ -94,7 +94,7 @@ impl CargoTargetSpec { | |||
94 | global_state_snapshot: &GlobalStateSnapshot, | 94 | global_state_snapshot: &GlobalStateSnapshot, |
95 | file_id: FileId, | 95 | file_id: FileId, |
96 | ) -> Result<Option<CargoTargetSpec>> { | 96 | ) -> Result<Option<CargoTargetSpec>> { |
97 | let crate_id = match global_state_snapshot.analysis().crate_for(file_id)?.first() { | 97 | let crate_id = match global_state_snapshot.analysis.crate_for(file_id)?.first() { |
98 | Some(crate_id) => *crate_id, | 98 | Some(crate_id) => *crate_id, |
99 | None => return Ok(None), | 99 | None => return Ok(None), |
100 | }; | 100 | }; |