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 00:16:39 +10:00 committed by Jiahao XU
parent 53f342ab1c
commit 6ae407c15b
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928
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),
_ => (),
}
}