treewide: fix clippy lints

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I411be69ff31f9cb39cd4cdebc8985b366a6a6964
This commit is contained in:
raf 2026-04-21 18:08:41 +03:00
commit 61ced09d25
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
43 changed files with 558 additions and 464 deletions

View file

@ -29,11 +29,13 @@ pub async fn execute(args: RemoteArgs) -> Result<()> {
// If no URL provided, show status
if args.url.is_none() {
show_remote_status(&remote_path)?;
show_remote_status(&remote_path);
return Ok(());
}
let url = args.url.unwrap();
let url = args
.url
.ok_or_else(|| PakkerError::InvalidInput("URL is required".to_string()))?;
log::info!("Installing modpack from: {url}");
// Clone or update repository
@ -90,10 +92,10 @@ pub async fn execute(args: RemoteArgs) -> Result<()> {
Ok(())
}
fn show_remote_status(remote_path: &Path) -> Result<()> {
fn show_remote_status(remote_path: &Path) {
if !remote_path.exists() {
println!("No remote configured");
return Ok(());
return;
}
println!("Remote status:");
@ -107,8 +109,6 @@ fn show_remote_status(remote_path: &Path) -> Result<()> {
println!(" Commit: {}", &sha[..8]);
}
}
Ok(())
}
fn sync_overrides(remote_path: &Path, server_pack: bool) -> Result<()> {