refactor: fix Windows clippy (#880)

Refactor: fix Windows clippy
This commit is contained in:
SteveLauC
2024-07-29 09:01:04 +08:00
committed by GitHub
parent 5af0c6a7e5
commit e4441d5021

View File

@@ -230,7 +230,7 @@ pub fn insert_startup_scripts(git_repos: &mut RepoStep) -> Result<()> {
if let Ok(lnk) = parselnk::Lnk::try_from(Path::new(&path)) { if let Ok(lnk) = parselnk::Lnk::try_from(Path::new(&path)) {
debug!("Startup link: {:?}", lnk); debug!("Startup link: {:?}", lnk);
if let Some(path) = lnk.relative_path() { if let Some(path) = lnk.relative_path() {
git_repos.insert_if_repo(&startup_dir.join(path)); git_repos.insert_if_repo(startup_dir.join(path));
} }
} }
} }