We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833b03a commit 941b6b0Copy full SHA for 941b6b0
src/librustdoc/html/format.rs
@@ -207,7 +207,7 @@ impl<'a> fmt::Display for WhereClause<'a> {
207
if !f.alternate() {
208
clause.push_str("</span>");
209
let plain = format!("{:#}", self);
210
- if plain.len() > 80 {
+ if plain.len() + pad > 80 {
211
//break it onto its own line regardless, but make sure method impls and trait
212
//blocks keep their fixed padding (2 and 9, respectively)
213
let padding = if pad > 10 {
0 commit comments