Suggested edit

This commit is contained in:
Enrico Marconi 2020-10-15 14:47:29 +02:00
parent 9c184b60e4
commit af0542db90

View File

@ -2623,7 +2623,7 @@ impl Hud {
if !self.show.ui { if !self.show.ui {
// Optimization: skip maintaining UI when it's off. // Optimization: skip maintaining UI when it's off.
return std::mem::replace(&mut self.events, Vec::new()); return std::mem::take(&mut self.events);
} }
if let Some(maybe_id) = self.to_focus.take() { if let Some(maybe_id) = self.to_focus.take() {