summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-09-27 15:52:42 +0800
committerIvan Tham <pickfire@riseup.net>2020-09-27 15:52:42 +0800
commit11d98a07dc5ad7e8af8971f1ba5352cc7140b1dc (patch)
tree12525c9de08d7492cb62e6a3fe3cff66c83271e2 /test
parentdd1a582b30cc17c3e484fe77b917485ff7a2ff16 (diff)
Rust align open paren for if and for
Diffstat (limited to 'test')
-rw-r--r--test/indent/rust/on-open-paren/in9
-rw-r--r--test/indent/rust/on-open-paren/out9
2 files changed, 18 insertions, 0 deletions
diff --git a/test/indent/rust/on-open-paren/in b/test/indent/rust/on-open-paren/in
index 1ca71d62..661f2331 100644
--- a/test/indent/rust/on-open-paren/in
+++ b/test/indent/rust/on-open-paren/in
@@ -33,3 +33,12 @@
union X<T> where T: Debug %( )
+ if foo()
+ && bar()
+ %( )
+
+ for x in group
+ .iter()
+ .sorted_by(|a, b| Ord::cmp(&a.0, &b.0))
+ %( )
+
diff --git a/test/indent/rust/on-open-paren/out b/test/indent/rust/on-open-paren/out
index de125ea7..60973f8a 100644
--- a/test/indent/rust/on-open-paren/out
+++ b/test/indent/rust/on-open-paren/out
@@ -33,3 +33,12 @@
union X<T> where T: Debug {
+ if foo()
+ && bar()
+ {
+
+ for x in group
+ .iter()
+ .sorted_by(|a, b| Ord::cmp(&a.0, &b.0))
+ {
+