summary refs log tree commit diff
path: root/gpu_display/build.rs
diff options
context:
space:
mode:
authorZach Reizner <zachr@google.com>2018-10-03 10:22:32 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-10-09 21:14:05 -0700
commit55a9e504beef368bd97e51ffd5a7fa6c034eb8ad (patch)
tree894d8685e2fdfa105ea35d1cb6cfceee06502c7a /gpu_display/build.rs
parent046df60760f3b0691f23c27a7f24a96c9afe8c05 (diff)
downloadcrosvm-55a9e504beef368bd97e51ffd5a7fa6c034eb8ad.tar
crosvm-55a9e504beef368bd97e51ffd5a7fa6c034eb8ad.tar.gz
crosvm-55a9e504beef368bd97e51ffd5a7fa6c034eb8ad.tar.bz2
crosvm-55a9e504beef368bd97e51ffd5a7fa6c034eb8ad.tar.lz
crosvm-55a9e504beef368bd97e51ffd5a7fa6c034eb8ad.tar.xz
crosvm-55a9e504beef368bd97e51ffd5a7fa6c034eb8ad.tar.zst
crosvm-55a9e504beef368bd97e51ffd5a7fa6c034eb8ad.zip
cargo fmt all source code
Now that cargo fmt has landed, run it over everything at once to bring
rust source to the standard formatting.

TEST=cargo test
BUG=None

Change-Id: Ic95a48725e5a40dcbd33ba6d5aef2bd01e91865b
Reviewed-on: https://chromium-review.googlesource.com/1259287
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'gpu_display/build.rs')
-rw-r--r--gpu_display/build.rs18
1 files changed, 11 insertions, 7 deletions
diff --git a/gpu_display/build.rs b/gpu_display/build.rs
index a1ce4f7..33a8653 100644
--- a/gpu_display/build.rs
+++ b/gpu_display/build.rs
@@ -45,9 +45,11 @@ fn find_protocol(name: &str) -> PathBuf {
 
     // Use bundled protocols as a fallback.
     let protocol_path = Path::new("protocol").join(protocol_file_name);
-    assert!(protocol_path.is_file(),
-            "unable to locate wayland protocol specification for `{}`",
-            name);
+    assert!(
+        protocol_path.is_file(),
+        "unable to locate wayland protocol specification for `{}`",
+        name
+    );
     protocol_path
 }
 
@@ -84,10 +86,12 @@ fn main() {
     build.file("src/display_wl.c");
     println!("cargo:rerun-if-changed=src/display_wl.c");
 
-    for protocol in &["aura-shell",
-                      "linux-dmabuf-unstable-v1",
-                      "xdg-shell-unstable-v6",
-                      "viewporter"] {
+    for protocol in &[
+        "aura-shell",
+        "linux-dmabuf-unstable-v1",
+        "xdg-shell-unstable-v6",
+        "viewporter",
+    ] {
         build.file(compile_protocol(protocol, &out_dir));
     }
     build.compile("display_wl");