Set up Rust linting and cargo-raze in CI
Change-Id: I4c7e603302a1033d5e5141466c4cc5a6131c6e35
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/build_tests/rust_hello.rs b/build_tests/rust_hello.rs
index 6c6bf9f..110b96e 100644
--- a/build_tests/rust_hello.rs
+++ b/build_tests/rust_hello.rs
@@ -5,17 +5,17 @@
}
fn main() {
- let hello = hello_lib::Greeter::new("Hello");
- println!("{},\n{}", hello.greet("world"), hello.greet("bazel"));
+ let hello = hello_lib::Greeter::new("Hello");
+ println!("{},\n{}", hello.greet("world"), hello.greet("bazel"));
- let mut numbers = Vec::new();
- for i in 1..=10 {
- numbers.push(i);
- }
- println!("{:?}", numbers);
+ let mut numbers = Vec::new();
+ for i in 1..=10 {
+ numbers.push(i);
+ }
+ println!("{:?}", numbers);
- let words = vec!["foo", "bar", "baz"];
- println!("{:?}", words);
+ let words = vec!["foo", "bar", "baz"];
+ println!("{:?}", words);
- println!("sqrt(4) = {}", unsafe { sqrt(4.0) });
+ println!("sqrt(4) = {}", unsafe { sqrt(4.0) });
}