diff options
author | Josh Matthews <josh@joshmatthews.net> | 2018-03-22 12:31:55 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-03-22 14:27:52 -0400 |
commit | 391d0626db747eb0ff737dc28436a576705c1566 (patch) | |
tree | 47ccd58adea30fa75769626f9a4954be790010ee /components/layout/inline.rs | |
parent | 63ab4f73f18391f73bf6bacbbafeceddaaeac5bd (diff) | |
download | servo-391d0626db747eb0ff737dc28436a576705c1566.tar.gz servo-391d0626db747eb0ff737dc28436a576705c1566.zip |
Workaround #20149 - presumed rustc bug on android.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 6 |
1 files 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. |