mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Take the width of trailing '?'s into account
This commit is contained in:
parent
ad47a71012
commit
142fc45dbb
@ -157,7 +157,7 @@ pub fn rewrite_chain(expr: &ast::Expr, context: &RewriteContext, shape: Shape) -
|
||||
last_line_width(&parent_rewrite)
|
||||
} else {
|
||||
rewrites.iter().fold(0, |a, b| a + b.len()) + parent_rewrite.len()
|
||||
};
|
||||
} + suffix_try_num;
|
||||
let one_line_budget = if rewrites.is_empty() && !context.config.chain_split_single_child() {
|
||||
shape.width
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user