writer,
"<error line=\"{}\" severity=\"warning\" message=\"Should be `{}`\" \
/>",
- mismatch.line_number,
- message
+ mismatch.line_number, message
)?;
}
}
};
Some(format!(
"{}{}{}{}{}",
- prev_str,
- first_sep,
- missing_comment,
- second_sep,
- next_str,
+ prev_str, first_sep, missing_comment, second_sep, next_str,
))
}
toml,
format!(
"merge_derives = {}\nskip_children = {}\n",
- merge_derives,
- skip_children,
+ merge_derives, skip_children,
)
);
}
if one_line_width <= shape.width {
return Some(format!(
"{}{}{}{}",
- lhs_result,
- pp.infix,
- rhs_result,
- pp.suffix
+ lhs_result, pp.infix, rhs_result, pp.suffix
));
}
}
};
Some(format!(
"{}{}{}{}",
- lhs_result,
- infix_with_sep,
- rhs_result,
- pp.suffix
+ lhs_result, infix_with_sep, rhs_result, pp.suffix
))
}
let result = format!(
"{} {} {{ {} }} else {{ {} }}",
- self.keyword,
- pat_expr_str,
- if_str,
- else_str
+ self.keyword, pat_expr_str, if_str, else_str
);
if result.len() <= width {
Some(format!(
"{} =>{}{}{}",
- pats_str,
- block_sep,
- body_str,
- body_suffix
+ pats_str, block_sep, body_str, body_suffix
))
};
if !(retry && trait_ref_str.contains('\n')) {
return Some(format!(
"{} {}{}",
- generics_str,
- polarity_str,
- &trait_ref_str
+ generics_str, polarity_str, &trait_ref_str
));
}
}
ErrorKind::LineOverflow(found, maximum) => write!(
fmt,
"line exceeded maximum width (maximum: {}, found: {})",
- maximum,
- found
+ maximum, found
),
ErrorKind::TrailingWhitespace => write!(fmt, "left behind trailing whitespace"),
ErrorKind::BadIssue(issue) => write!(fmt, "found {}", issue),
{
format!(
"for< {} > {}{}{}",
- lifetime_str,
- type_str,
- colon,
- bounds_str
+ lifetime_str, type_str, colon, bounds_str
)
} else {
format!("for<{}> {}{}{}", lifetime_str, type_str, colon, bounds_str)
fn issue_1555() {
let hello = &format!(
"HTTP/1.1 200 OK\r\nServer: {}\r\n\r\n{}",
- "65454654654654654654654655464",
- "4"
+ "65454654654654654654654655464", "4"
);
}