diff options
| author | Pavel Sountsov <siege@google.com> | 2015-09-18 21:50:44 -0700 |
|---|---|---|
| committer | SiegeLord <slabode@aim.com> | 2015-09-19 10:36:45 -0700 |
| commit | 03e1b2782616cbc8f06ba4e484b1540ae23e32be (patch) | |
| tree | 7d62f4cb04b59eb355fc69278f13e5dcb267bae5 /src/string.rs | |
| parent | d4108a3029cecf7855514f568f8b3b88edcbfdb7 (diff) | |
Add Indent::none(), remove make_indent.
Diffstat (limited to 'src/string.rs')
| -rw-r--r-- | src/string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.rs b/src/string.rs index 3da0a5f4a25..4e40b8e9ede 100644 --- a/src/string.rs +++ b/src/string.rs @@ -15,7 +15,7 @@ use regex::Regex; use Indent; use config::Config; -use utils::{make_indent, round_up_to_power_of_two}; +use utils::round_up_to_power_of_two; use MIN_STRING; @@ -39,7 +39,7 @@ pub fn rewrite_string<'a>(s: &str, fmt: &StringFormat<'a>) -> String { let graphemes = UnicodeSegmentation::graphemes(&*stripped_str, false).collect::<Vec<&str>>(); - let indent = make_indent(fmt.offset, fmt.config); + let indent = fmt.offset.to_string(fmt.config); let indent = &indent; let mut cur_start = 0; |
