]> git.proxmox.com Git - proxmox-offline-mirror.git/commitdiff
cargo fmt
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 21 Oct 2022 10:49:43 +0000 (12:49 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 21 Oct 2022 10:49:43 +0000 (12:49 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/bin/proxmox-offline-mirror.rs

index 67036f151219e2d66d80139a8cfb2a34b20efb7c..a2a5b79d300997dff40fb81127406b9a1412311a 100644 (file)
@@ -98,13 +98,31 @@ fn derive_debian_repo(
     components: &str,
 ) -> Result<(String, String, String, SkipConfig), Error> {
     println!("Configure filters for Debian mirror {release} / {variant}:");
-    let skip_sections = match read_string_from_tty("\tEnter list of package sections to be skipped ('-' for None):", Some("debug,games"))?.as_str() {
+    let skip_sections = match read_string_from_tty(
+        "\tEnter list of package sections to be skipped ('-' for None):",
+        Some("debug,games"),
+    )?
+    .as_str()
+    {
         "-" => None,
-        list => Some(list.split(',').map(|v| v.trim().to_owned()).collect::<Vec<String>>()),
+        list => Some(
+            list.split(',')
+                .map(|v| v.trim().to_owned())
+                .collect::<Vec<String>>(),
+        ),
     };
-    let skip_packages = match read_string_from_tty("\tEnter list of package names/name globs to be skipped ('-' for None):", None)?.as_str() {
+    let skip_packages = match read_string_from_tty(
+        "\tEnter list of package names/name globs to be skipped ('-' for None):",
+        None,
+    )?
+    .as_str()
+    {
         "-" => None,
-        list => Some(list.split(',').map(|v| v.trim().to_owned()).collect::<Vec<String>>()),
+        list => Some(
+            list.split(',')
+                .map(|v| v.trim().to_owned())
+                .collect::<Vec<String>>(),
+        ),
     };
     let filters = SkipConfig {
         skip_packages,