Skip to content

Commit

Permalink
Merge pull request #50 from kraai/cargo-0.32
Browse files Browse the repository at this point in the history
Update to cargo 0.32
  • Loading branch information
Nemo157 authored Dec 17, 2018
2 parents d1c2687 + 18f7c33 commit 98bd0e8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
33 changes: 26 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ keywords = ["cargo", "licensing"]
license = "MIT/Apache-2.0"

[dependencies]
cargo = "0.31"
cargo = "0.32"
clap = "2.20"
failure = "0.1.2"
regex = "0.2"
Expand Down
4 changes: 2 additions & 2 deletions src/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn resolve_roots(
SelectedPackage::Specific(spec) => {
let (packages, _) = ops::resolve_ws(&workspace)?;
let package_id = spec.query(packages.package_ids())?;
vec![packages.get(package_id)?.clone()]
vec![packages.get_one(package_id)?.clone()]
}
})
}
Expand All @@ -40,7 +40,7 @@ pub fn resolve_packages<'a, I: IntoIterator<Item=&'a Package>>(
let mut result = HashSet::new();
let mut to_check = roots.into_iter().map(|p| p.package_id()).collect::<Vec<_>>();
while let Some(id) = to_check.pop() {
if let Ok(package) = packages.get(id) {
if let Ok(package) = packages.get_one(id) {
if result.insert(package) {
let deps = resolve.deps_not_replaced(id);
for dep_id in deps {
Expand Down

0 comments on commit 98bd0e8

Please sign in to comment.