We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1d2d8f commit 666c199Copy full SHA for 666c199
src/cargo/sources/path.rs
@@ -250,21 +250,6 @@ impl<'gctx> RecursivePathSource<'gctx> {
250
}
251
252
253
- /// Gets the package on the root path.
254
- pub fn root_package(&mut self) -> CargoResult<Package> {
255
- trace!("root_package; source={:?}", self);
256
-
257
- self.update()?;
258
259
- match self.packages.iter().find(|p| p.root() == &*self.path) {
260
- Some(pkg) => Ok(pkg.clone()),
261
- None => Err(internal(format!(
262
- "no package found in source {:?}",
263
- self.path
264
- ))),
265
- }
266
267
268
/// Returns the packages discovered by this source. It may walk the
269
/// filesystem if package information haven't yet updated.
270
pub fn read_packages(&self) -> CargoResult<Vec<Package>> {
0 commit comments