]> git.proxmox.com Git - proxmox.git/commitdiff
fmt
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 25 Feb 2021 08:16:44 +0000 (09:16 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 25 Feb 2021 08:16:44 +0000 (09:16 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox/src/api/section_config.rs

index 1fd2721f09964ee6f5b340da8b2c24701a789594..564a7c77f7ca415d3c128fbf03493692a858cb6b 100644 (file)
@@ -837,25 +837,21 @@ fn test_section_config_with_all_of_schema() {
 
     const PART1: Schema = ObjectSchema::new(
         "properties 1",
-        &[
-            (
-                "content",
-                true,
-                &StringSchema::new("Storage content types.").schema(),
-            ),
-        ],
+        &[(
+            "content",
+            true,
+            &StringSchema::new("Storage content types.").schema(),
+        )],
     )
     .schema();
 
     const PART2: Schema = ObjectSchema::new(
         "properties 2",
-        &[
-            (
-                "thinpool",
-                false,
-                &StringSchema::new("LVM thin pool name.").schema(),
-            ),
-        ],
+        &[(
+            "thinpool",
+            false,
+            &StringSchema::new("LVM thin pool name.").schema(),
+        )],
     )
     .schema();
 
@@ -880,7 +876,9 @@ lvmthin: local-lvm2
 
     let res = config.parse(filename, &raw);
     println!("RES: {:?}", res);
-    let created = config.write(filename, &res.unwrap()).expect("failed to write config");
+    let created = config
+        .write(filename, &res.unwrap())
+        .expect("failed to write config");
     println!("CONFIG:\n{}", raw);
 
     assert_eq!(raw, created);