mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Simplify
This commit is contained in:
parent
d0d5aa935b
commit
100cbc57ce
2 changed files with 2 additions and 8 deletions
|
@ -207,7 +207,7 @@ impl CrateGraph {
|
|||
}
|
||||
|
||||
for dep in &self[from].dependencies {
|
||||
let crate_id = dep.crate_id();
|
||||
let crate_id = dep.crate_id;
|
||||
if crate_id == target {
|
||||
return true;
|
||||
}
|
||||
|
@ -261,12 +261,6 @@ impl fmt::Display for Edition {
|
|||
}
|
||||
}
|
||||
|
||||
impl Dependency {
|
||||
pub fn crate_id(&self) -> CrateId {
|
||||
self.crate_id
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ParseEditionError {
|
||||
invalid_input: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue