Skip to content

Commit

Permalink
Update krates dependency to 0.16.4. (#244)
Browse files Browse the repository at this point in the history
This fixes compatibility with stable and nightly cargo-metadata output.
  • Loading branch information
kpreid authored Jan 23, 2024
1 parent 2f62758 commit e638208
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 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 @@ -50,7 +50,7 @@ home = "0.5"
# Directory walking
ignore = "0.4"
# Dependency graphing
krates = "0.15"
krates = "0.16.4"
# Logging macros
log = "0.4"
# Better heap allocator over system one (usually)
Expand Down
4 changes: 2 additions & 2 deletions src/licenses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod workarounds;

use crate::{Krate, Krates};
use anyhow::Context as _;
use krates::Utf8PathBuf as PathBuf;
use krates::{KrateMatch, Utf8PathBuf as PathBuf};
use rayon::prelude::*;
pub use resolution::Resolved;
use std::{cmp, fmt, sync::Arc};
Expand Down Expand Up @@ -313,7 +313,7 @@ impl Gatherer {
}
};

let krate = krates.krates_by_name(def.coordinates.name).find_map(move |(_, krate)| {
let krate = krates.krates_by_name(def.coordinates.name).find_map(move |KrateMatch { krate, .. }| {
if krate.version == version {
Some(krate)
} else {
Expand Down

0 comments on commit e638208

Please sign in to comment.