changed a line from an if else to std::cmp::max

This commit is contained in:
hman523 2019-09-23 19:51:15 -05:00
parent fa2cfaf064
commit a6da0e921b

View File

@ -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
}