Add -Wrust-2018-idioms to all builds

This matches what fx build does.

Change-Id: I5763cda6fba6dfda83d92aadbb166b42d6126f02
diff --git a/src/lib.rs b/src/lib.rs
index e08e20f..be4deb0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -351,6 +351,7 @@
         format!("-Clink-arg=-L{}", clang_resource_lib.to_string_lossy()),
         format!("-Clink-arg=--sysroot={}", sysroot_as_path.to_string_lossy()),
         format!("-Lnative={}", shared_libraries_path(target_options)?.to_string_lossy()),
+        "-Wrust-2018-idioms".to_string(),
     ];
 
     if get_triple_cpu(target_options) == "aarch64" {