total_span,
context,
shape,
- )
- {
+ ) {
// If the first line of the last method does not fit into a single line
// after the others, allow new lines.
almost_total + first_line_width(&last[0]) < context.config.max_width()
&result,
&where_clause_str,
&item,
- ))
- {
+ )) {
result.push_str(&where_clause_str);
if where_clause_str.contains('\n') {
let white_space = offset.to_string(context.config);
true,
polarity_str,
result_len,
- )
- {
+ ) {
result.push_str(&trait_ref_str);
} else {
let generics_str = try_opt!(rewrite_generics_inner(
!has_braces,
put_args_in_block && ret_str.is_empty(),
Some(span.hi),
- )
- {
+ ) {
if !where_clause_str.contains('\n') {
if last_line_width(&result) + where_clause_str.len() > context.config.max_width() {
result.push('\n');
for item in items.iter().rev().take_while(|i| match i.item {
Some(ref internal_string) if internal_string == "_" => true,
_ => false,
- })
- {
+ }) {
suffix_len += 1;
if item.pre_comment.is_some() || item.post_comment.is_some() {
item,
self.block_indent,
where_span_end,
- )
- {
+ ) {
self.buffer.push_str(&impl_str);
self.last_pos = source!(self, item.span).hi;
}
&self.get_context(),
item,
self.block_indent,
- )
- {
+ ) {
self.buffer.push_str(&trait_str);
self.last_pos = source!(self, item.span).hi;
}