Fix overflow

cc #1665
This commit is contained in:
Nick Cameron 2017-06-13 15:09:48 +12:00
parent bb215e2b89
commit 142bec1311

View File

@ -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!(