about summary refs log tree commit diff
path: root/src/string.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2016-04-22 19:03:36 +1200
committerNick Cameron <ncameron@mozilla.com>2016-04-22 19:18:48 +1200
commita9c3108c9cd6267ebaf2489fb65a07b88a4f9d4e (patch)
treec9eb80274f8382daa8d5bd27605525af09a79598 /src/string.rs
parent9761cf71d8384db2a75c7595b082dd7764575851 (diff)
Change defaults and update tests and source
New defaults are `Tabbed` for `chain_indent` and `chain_base_indent`, and `5` for `closure_block_indent_threshold`.
Diffstat (limited to 'src/string.rs')
-rw-r--r--src/string.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.rs b/src/string.rs
index bccf39deb92..e90e24f7af2 100644
--- a/src/string.rs
+++ b/src/string.rs
@@ -42,8 +42,8 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option<String>
     // `cur_start` is the position in `orig` of the start of the current line.
     let mut cur_start = 0;
     let mut result = String::with_capacity(stripped_str.len()
-                                                       .checked_next_power_of_two()
-                                                       .unwrap_or(usize::max_value()));
+        .checked_next_power_of_two()
+        .unwrap_or(usize::max_value()));
     result.push_str(fmt.opener);
 
     let ender_length = fmt.line_end.len();