Skip to content

Commit 3e07f47

Browse files
chore(deps): lock file maintenance rust crates (#195)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | | | lockFileMaintenance | All locks refreshed | | [anyhow](https://redirect.github.com/dtolnay/anyhow) | dependencies | patch | `1.0.98` -> `1.0.98` | | [bpaf](https://redirect.github.com/pacak/bpaf) | dependencies | patch | `0.9.20` -> `0.9.20` | | [cargo-util-schemas](https://redirect.github.com/rust-lang/cargo) | dependencies | patch | `0.8.1` -> `0.8.1` | | [cargo_metadata](https://redirect.github.com/oli-obk/cargo_metadata) | dependencies | minor | `0.19.2` -> `0.20.0` | | [mimalloc-safe](https://redirect.github.com/napi-rs/mimalloc-safe) | dependencies | patch | `0.1.52` -> `0.1.52` | | [proc-macro2](https://redirect.github.com/dtolnay/proc-macro2) | dependencies | patch | `1.0.95` -> `1.0.95` | | [syn](https://redirect.github.com/dtolnay/syn) | dependencies | patch | `2.0.101` -> `2.0.101` | | [toml_edit](https://redirect.github.com/toml-rs/toml) | dependencies | patch | `0.22.26` -> `0.22.26` | 🔧 This Pull Request updates lock files to use the latest dependency versions. --- ### Release Notes <details> <summary>oli-obk/cargo_metadata (cargo_metadata)</summary> ### [`v0.20.0`](https://redirect.github.com/oli-obk/cargo_metadata/compare/0.19.2...0.20.0) [Compare Source](https://redirect.github.com/oli-obk/cargo_metadata/compare/0.19.2...0.20.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 9am on monday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/Boshen/cargo-shear). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4zMy42IiwidXBkYXRlZEluVmVyIjoiNDAuMzMuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Boshen <[email protected]>
1 parent fce05ed commit 3e07f47

File tree

3 files changed

+51
-14
lines changed

3 files changed

+51
-14
lines changed

Cargo.lock

Lines changed: 47 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test = false
2020

2121
[dependencies]
2222
walkdir = "2.5.0"
23-
cargo_metadata = "0.19.2"
23+
cargo_metadata = "0.20.0"
2424
cargo_toml = "0.22.1"
2525
bpaf = { version = "0.9.19", features = ["derive", "batteries"] }
2626
proc-macro2 = { version = "1.0.94", features = ["span-locations"] }

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ impl CargoShear {
123123
let mut package_dependencies = HashSet::new();
124124
for package in metadata.workspace_packages() {
125125
// Skip if package is in the exclude list
126-
if self.options.exclude.iter().any(|name| name == &package.name) {
126+
if self.options.exclude.iter().any(|name| name == package.name.as_str()) {
127127
continue;
128128
}
129129

130130
// Skip if specific packages are specified and this package is not in the list
131131
if !self.options.package.is_empty()
132-
&& !self.options.package.iter().any(|name| name == &package.name)
132+
&& !self.options.package.iter().any(|name| name == package.name.as_str())
133133
{
134134
continue;
135135
}
@@ -223,7 +223,7 @@ impl CargoShear {
223223
.iter()
224224
.map(|node_dep| {
225225
Self::parse_package_id(&node_dep.pkg.repr)
226-
.map(|package_name| (node_dep.name.clone(), package_name))
226+
.map(|package_name| (node_dep.name.clone().into_inner(), package_name))
227227
})
228228
.collect::<Result<Vec<_>>>()?
229229
.into_iter()

0 commit comments

Comments
 (0)