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 <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-07-26 01:10:59 +10:00 committed by GitHub
parent 53f342ab1c
commit 871e1eaf68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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),
_ => (),
}
}