diff options
| author | Nick Cameron <nrc@ncameron.org> | 2015-10-18 15:19:32 +1300 |
|---|---|---|
| committer | Nick Cameron <nrc@ncameron.org> | 2015-10-18 15:19:32 +1300 |
| commit | d7019ce8976ef1657ff47d021ffc7e31ddadbfe6 (patch) | |
| tree | d54caf81d6b6a390c4d178a62fe6f98a95f4ff1a /src/expr.rs | |
| parent | 51afb3ed106823bd972ff21136787070642d4104 (diff) | |
| parent | 5407202fdf357e4acfe0d06c0ade9662d0eaad5f (diff) | |
Merge pull request #474 from marcusklaas/fn-indent
Properly indent pub fns in extern blocks
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs index 0b64ecf35ff..3467b38c1a4 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -273,7 +273,7 @@ pub fn rewrite_array<'a, I>(expr_iter: I, let has_long_item = try_opt!(items.iter() .map(|li| li.item.as_ref().map(|s| s.len() > 10)) .fold(Some(false), - |acc, x| acc.and_then(|y| x.map(|x| (x || y))))); + |acc, x| acc.and_then(|y| x.map(|x| x || y)))); let tactic = if has_long_item || items.iter().any(ListItem::is_multiline) { definitive_tactic(&items, ListTactic::HorizontalVertical, max_item_width) |
