// Remove the quote characters.
let str_lit = &string_lit[1..string_lit.len() - 1];
- rewrite_string(str_lit, &StringFormat::new(shape, context.config))
+ rewrite_string(str_lit, &StringFormat::new(shape.visual_indent(0), context.config))
}
fn string_requires_rewrite(
let stripped_str = re.replace_all(orig, "$1");
let graphemes = UnicodeSegmentation::graphemes(&*stripped_str, false).collect::<Vec<&str>>();
- let shape = fmt.shape.visual_indent(0);
+ let shape = fmt.shape;
let indent = shape.indent.to_string(fmt.config);
let punctuation = ":,;.";