Workaround #20149 - presumed rustc bug on android.

This commit is contained in:
Josh Matthews 2018-03-22 12:31:55 -04:00
parent 63ab4f73f1
commit 391d0626db

View file

@ -266,10 +266,10 @@ impl LineBreaker {
} }
/// Reinitializes the pending line to blank data. /// Reinitializes the pending line to blank data.
fn reset_line(&mut self) -> Line { fn reset_line(&mut self) {
self.last_known_line_breaking_opportunity = None; self.last_known_line_breaking_opportunity = None;
mem::replace(&mut self.pending_line, // https://github.com/rust-lang/rust/issues/49282
Line::new(self.floats.writing_mode, &self.minimum_metrics)) self.pending_line = Line::new(self.floats.writing_mode, &self.minimum_metrics);
} }
/// Reflows fragments for the given inline flow. /// Reflows fragments for the given inline flow.