mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Move to to_owned rather than into_string.
into_string has been removed from Rust.
This commit is contained in:
parent
2d5b0e0855
commit
01ed338746
67 changed files with 473 additions and 383 deletions
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use geom::{Point2D, Rect, Size2D};
|
||||
use std::borrow::ToOwned;
|
||||
use std::mem;
|
||||
use std::slice;
|
||||
use std::rc::Rc;
|
||||
|
@ -162,7 +163,7 @@ impl Font {
|
|||
|
||||
let glyphs = Arc::new(glyphs);
|
||||
self.shape_cache.insert(ShapeCacheEntry {
|
||||
text: text.into_string(),
|
||||
text: text.to_owned(),
|
||||
options: *options,
|
||||
}, glyphs.clone());
|
||||
glyphs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue