]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/listings/ch13-functional-features/listing-13-07/src/main.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch13-functional-features / listing-13-07 / src / main.rs
index 00f4f515da7f52b6d900ca599f75e96a93a3790f..73a25e5f9188595ceb76084938ee4034520d689e 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 },
     ];
 
     list.sort_by_key(|r| r.width);