mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
changed a line from an if else to std::cmp::max
This commit is contained in:
parent
fa2cfaf064
commit
a6da0e921b
@ -1049,7 +1049,7 @@ impl EmitterWriter {
|
||||
|
||||
for sub in children {
|
||||
let sub_result = self.get_multispan_max_line_num(&sub.span);
|
||||
max = if sub_result > max { sub_result } else { max };
|
||||
max = std::cmp::max(sub_result, max);
|
||||
}
|
||||
max
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user