We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c8dd52 commit 5038d4eCopy full SHA for 5038d4e
src/librustc_driver/lib.rs
@@ -628,12 +628,12 @@ Available lint options:
628
629
630
631
- let max_name_len = plugin_groups.iter()
632
- .chain(&builtin_groups)
633
- .map(|&(s, _)| s.chars().count())
634
- .max()
635
- .unwrap_or(0);
636
- let max_name_len = std::cmp::max(max_name_len, "warnings".len());
+ let max_name_len = max("warnings".len(),
+ plugin_groups.iter()
+ .chain(&builtin_groups)
+ .map(|&(s, _)| s.chars().count())
+ .max()
+ .unwrap_or(0));
637
638
let padded = |x: &str| {
639
let mut s = repeat(" ")
0 commit comments