From 5e4b9cb231eff261a74e7ff0240493e1241a917a Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Fri, 2 Oct 2026 01:28:08 +0200 Subject: [PATCH] fmt: apply rustfmt --- src/pull.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/pull.rs b/src/pull.rs index 5ae64b0..7cf1d1b 100644 --- a/src/pull.rs +++ b/src/pull.rs @@ -160,21 +160,13 @@ fn copy_file_times(src: &Path, dest: &Path) -> Result<(), Box> { fn component_addon(name: &str) -> Option<&str> { let rest = name.split_once(".orig-")?.1; let addon = rest.split(".tar.").next()?; - if addon.is_empty() { - None - } else { - Some(addon) - } + if addon.is_empty() { None } else { Some(addon) } } /// Move the contents of an archive's wrapper directory into `dir`, or into /// `dir/` for a multi-orig component, replacing any pre-existing /// addon directory. -fn unwrap_into( - dir: &Path, - wrapper: &Path, - addon: Option<&str>, -) -> Result<(), Box> { +fn unwrap_into(dir: &Path, wrapper: &Path, addon: Option<&str>) -> Result<(), Box> { let target = match addon { Some(addon) => { let target = dir.join(addon);