From 871e1eaf6898a931c7c9bbed6d0c33bcfe85fdb0 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Fri, 26 Jul 2024 01:10:59 +1000 Subject: [PATCH] Fix 1.80 cargo clippy errors (#1834) Fix 1.80 clippy lint errors Fix 1.80 linting Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Signed-off-by: Jiahao XU --- crates/binstalk-manifests/src/cargo_config.rs | 2 +- crates/cargo-toml-workspace/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/binstalk-manifests/src/cargo_config.rs b/crates/binstalk-manifests/src/cargo_config.rs index a92cc104..6bc36d96 100644 --- a/crates/binstalk-manifests/src/cargo_config.rs +++ b/crates/binstalk-manifests/src/cargo_config.rs @@ -71,7 +71,7 @@ pub struct Config { fn join_if_relative(path: Option<&mut PathBuf>, dir: &Path) { match path { - Some(path) if path.is_relative() => *path = dir.join(&path), + Some(path) if path.is_relative() => *path = dir.join(&*path), _ => (), } } diff --git a/crates/cargo-toml-workspace/src/lib.rs b/crates/cargo-toml-workspace/src/lib.rs index 87f6e58d..16c8050d 100644 --- a/crates/cargo-toml-workspace/src/lib.rs +++ b/crates/cargo-toml-workspace/src/lib.rs @@ -142,6 +142,7 @@ impl Pattern { } /// * `glob_path` - path to dir to glob for + /// /// return paths relative to `glob_path`. fn glob_dirs(&self, glob_path: &Path) -> Result, ErrorInner> { let mut paths = vec![PathBuf::new()];