fix: indentation issue on generic bounds

This commit is contained in:
Caleb Cartwright 2021-01-12 17:39:03 -06:00 committed by Caleb Cartwright
parent 4f9c794ce1
commit b30cb24286
3 changed files with 27 additions and 1 deletions

View file

@ -936,7 +936,7 @@ fn join_bounds_inner(
_ => false,
};
let shape = if i > 0 && need_indent && force_newline {
let shape = if need_indent && force_newline {
shape
.block_indent(context.config.tab_spaces())
.with_max_width(context.config)

View file

@ -0,0 +1,13 @@
pub trait PrettyPrinter<'tcx>:
Printer<
'tcx,
Error = fmt::Error,
Path = Self,
Region = Self,
Type = Self,
DynExistential = Self,
Const = Self,
> + fmt::Write
{
//
}

View file

@ -0,0 +1,13 @@
pub trait PrettyPrinter<'tcx>:
Printer<
'tcx,
Error = fmt::Error,
Path = Self,
Region = Self,
Type = Self,
DynExistential = Self,
Const = Self,
> + fmt::Write
{
//
}