diff options
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. |