]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/listings/ch13-functional-features/listing-13-08/src/main.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch13-functional-features / listing-13-08 / src / main.rs
index 2fd15e500b6ff1f3e03b94dc24ca2e3ba972819f..3b9c9cbdfdb3c16e63dd31fc38b38e264d7bb128 100644 (file)
@@ -6,18 +6,9 @@ struct Rectangle {
 
 fn main() {
     let mut list = [
-        Rectangle {
-            width: 10,
-            height: 1,
-        },
-        Rectangle {
-            width: 3,
-            height: 5,
-        },
-        Rectangle {
-            width: 7,
-            height: 12,
-        },
+        Rectangle { width: 10, height: 1 },
+        Rectangle { width: 3, height: 5 },
+        Rectangle { width: 7, height: 12 },
     ];
 
     let mut sort_operations = vec![];