mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Merge #10011
10011: minor: remove dead code r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
68279e3253
1 changed files with 0 additions and 9 deletions
|
@ -354,15 +354,6 @@ impl CargoWorkspace {
|
|||
CargoWorkspace { packages, targets, workspace_root }
|
||||
}
|
||||
|
||||
pub fn from_cargo_metadata3(
|
||||
cargo_toml: &ManifestPath,
|
||||
config: &CargoConfig,
|
||||
progress: &dyn Fn(String),
|
||||
) -> Result<CargoWorkspace> {
|
||||
let meta = CargoWorkspace::fetch_metadata(cargo_toml, config, progress)?;
|
||||
Ok(CargoWorkspace::new(meta))
|
||||
}
|
||||
|
||||
pub fn packages<'a>(&'a self) -> impl Iterator<Item = Package> + ExactSizeIterator + 'a {
|
||||
self.packages.iter().map(|(id, _pkg)| id)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue