aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/rust_tidy.rs
diff options
context:
space:
mode:
authorcoalman <tehcoalman@gmail.com>2017-04-17 03:45:30 -0400
committercoalman <tehcoalman@gmail.com>2017-04-18 14:56:03 -0400
commit57e74542ee0b33bf103064a194f4d7ba27ea5b49 (patch)
treebb92f0ff2aa4aa185e3f23b8ec02178f45b33a97 /python/tidy/servo_tidy_tests/rust_tidy.rs
parenta754c10e79ef237b500bbf173eb7ba43529e51eb (diff)
downloadservo-57e74542ee0b33bf103064a194f4d7ba27ea5b49.tar.gz
servo-57e74542ee0b33bf103064a194f4d7ba27ea5b49.zip
Make tidy check that opening and closing braces that begin a line do so with proper alignment.
Diffstat (limited to 'python/tidy/servo_tidy_tests/rust_tidy.rs')
-rw-r--r--python/tidy/servo_tidy_tests/rust_tidy.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/rust_tidy.rs b/python/tidy/servo_tidy_tests/rust_tidy.rs
index 7a65de0ffcc..bb1b4e00572 100644
--- a/python/tidy/servo_tidy_tests/rust_tidy.rs
+++ b/python/tidy/servo_tidy_tests/rust_tidy.rs
@@ -63,4 +63,13 @@ impl test {
let var
= "val";
+
+ fn test_fun4()
+ {
+ }
+ let var = if true {
+ "true"
+ } else { // Should not trigger
+ "false"
+ } // Should not trigger
}