* Use `Indent::block_indent` instead of adding `config.tab_spaces`
* Fix #1259 impl block closing brace placement
if result.chars().last().unwrap() == '{' {
result.push('\n');
+ result.push_str(&offset.to_string(context.config));
}
result.push('}');
if offset.width() + last_line_width(&result) + trait_bound_str.len() >
context.config.ideal_width {
result.push('\n');
- let width = context.block_indent.width() + context.config.tab_spaces;
- let trait_indent = Indent::new(0, width);
+ let trait_indent = context.block_indent.block_indent(context.config);
result.push_str(&trait_indent.to_string(context.config));
}
result.push_str(&trait_bound_str);
impl<BorrowType, K, V, NodeType, HandleType> PartialEq for Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType> {
}
+
+mod x {
+ impl<A, B, C, D> Foo
+ where A: 'static,
+ B: 'static,
+ C: 'static,
+ D: 'static { }
+}
impl<BorrowType, K, V, NodeType, HandleType> PartialEq
for Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType> {
}
+
+mod x {
+ impl<A, B, C, D> Foo
+ where A: 'static,
+ B: 'static,
+ C: 'static,
+ D: 'static
+ {
+ }
+}