diff --git a/src/items.rs b/src/items.rs index 156528301be3..c9b278d9c033 100644 --- a/src/items.rs +++ b/src/items.rs @@ -1697,7 +1697,7 @@ fn rewrite_explicit_self( let mutability = explicit_self_mutability(&args[0]); let type_str = try_opt!(ty.rewrite( context, - Shape::legacy(usize::max_value(), Indent::empty()), + Shape::legacy(context.config.max_width(), Indent::empty()), )); Some(format!(