]> git.lizzy.rs Git - rust.git/commit
Fix wrapping of bounds in associated types
authorMichael Smith <michael@spinda.net>
Sat, 19 Aug 2017 21:57:01 +0000 (14:57 -0700)
committerMichael Smith <michael@spinda.net>
Sat, 19 Aug 2017 22:30:53 +0000 (15:30 -0700)
commitbaafa4f011d6c50f51f9c1de718e37d23a533373
treec94c8ee078a456afab61be4f6adc486d15ccdc7c
parentc166004e6da83e4c90459bf96e95574c065ee306
Fix wrapping of bounds in associated types

Bounds were wrapped to the full width of the line rather then the width
available after the "type ...: ", resulting in rustfmt unnecessarily producing
lines that were longer than the maximum width.
src/items.rs
tests/source/associated-types-bounds-wrapping.rs [new file with mode: 0644]
tests/target/associated-types-bounds-wrapping.rs [new file with mode: 0644]