diff --git a/src/types.rs b/src/types.rs index 5fbf4a7e1505..7f6e8e685763 100644 --- a/src/types.rs +++ b/src/types.rs @@ -160,7 +160,10 @@ impl<'a> Rewrite for SegmentParam<'a> { SegmentParam::LifeTime(lt) => lt.rewrite(context, shape), SegmentParam::Type(ty) => ty.rewrite(context, shape), SegmentParam::Binding(binding) => { - let mut result = format!("{} = ", binding.ident); + let mut result = match context.config.type_punctuation_density { + TypeDensity::Wide => format!("{} = ", binding.ident), + TypeDensity::Compressed => format!("{}=", binding.ident), + }; let budget = try_opt!(shape.width.checked_sub(result.len())); let rewrite = try_opt!(binding.ty