From 391d0626db747eb0ff737dc28436a576705c1566 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 22 Mar 2018 12:31:55 -0400 Subject: [PATCH] Workaround #20149 - presumed rustc bug on android. --- components/layout/inline.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/layout/inline.rs b/components/layout/inline.rs index 1918b2920a9..375f7460a49 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -266,10 +266,10 @@ impl LineBreaker { } /// 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; - mem::replace(&mut self.pending_line, - Line::new(self.floats.writing_mode, &self.minimum_metrics)) + // https://github.com/rust-lang/rust/issues/49282 + self.pending_line = Line::new(self.floats.writing_mode, &self.minimum_metrics); } /// Reflows fragments for the given inline flow.