Cargo fmt
This commit is contained in:
parent
142fc45dbb
commit
0d359eacd7
3 changed files with 16 additions and 16 deletions
|
|
@ -67,7 +67,9 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option<String>
|
|||
let ender_length = fmt.line_end.len();
|
||||
// If we cannot put at least a single character per line, the rewrite won't
|
||||
// succeed.
|
||||
let max_chars = shape.width.checked_sub(fmt.opener.len() + ender_length + 1)? + 1;
|
||||
let max_chars = shape
|
||||
.width
|
||||
.checked_sub(fmt.opener.len() + ender_length + 1)? + 1;
|
||||
|
||||
// Snip a line at a time from `orig` until it is used up. Push the snippet
|
||||
// onto result.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue