mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
accepting review suggestions
This commit is contained in:
parent
c372fb3495
commit
66fe84d936
13 changed files with 67 additions and 97 deletions
|
@ -88,7 +88,7 @@ export class RustDependenciesProvider
|
|||
);
|
||||
const crates = dependenciesResult.crates;
|
||||
const deps = crates.map((crate) => {
|
||||
const dep = this.toDep(crate.name, crate.version, crate.path);
|
||||
const dep = this.toDep(crate.name || "unknown", crate.version || "", crate.path);
|
||||
this.dependenciesMap[dep.dependencyPath.toLowerCase()] = dep;
|
||||
this.dependenciesMap[stdlib.dependencyPath.toLowerCase()] = stdlib;
|
||||
return dep;
|
||||
|
|
|
@ -74,8 +74,8 @@ export interface FetchDependencyListParams {}
|
|||
|
||||
export interface FetchDependencyListResult {
|
||||
crates: {
|
||||
name: string;
|
||||
version: string;
|
||||
name: string | undefined;
|
||||
version: string | undefined;
|
||||
path: string;
|
||||
}[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue