mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
internal: use types to remove some unwraps
This commit is contained in:
parent
1dc337645a
commit
493ed2c17b
7 changed files with 118 additions and 87 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
use cfg::{CfgAtom, CfgExpr};
|
||||
use ide::{FileId, RunnableKind, TestId};
|
||||
use project_model::{self, TargetKind};
|
||||
use project_model::{self, ManifestPath, TargetKind};
|
||||
use vfs::AbsPathBuf;
|
||||
|
||||
use crate::{global_state::GlobalStateSnapshot, Result};
|
||||
|
@ -14,7 +14,7 @@ use crate::{global_state::GlobalStateSnapshot, Result};
|
|||
#[derive(Clone)]
|
||||
pub(crate) struct CargoTargetSpec {
|
||||
pub(crate) workspace_root: AbsPathBuf,
|
||||
pub(crate) cargo_toml: AbsPathBuf,
|
||||
pub(crate) cargo_toml: ManifestPath,
|
||||
pub(crate) package: String,
|
||||
pub(crate) target: String,
|
||||
pub(crate) target_kind: TargetKind,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue