mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +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
|
@ -7,6 +7,7 @@ use platform::font_context::FontContextHandle;
|
|||
use platform::font::FontHandle;
|
||||
use platform::font_template::FontTemplateData;
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
use std::sync::{Arc, Weak};
|
||||
use font::FontHandleMethods;
|
||||
|
||||
|
@ -68,7 +69,7 @@ impl FontTemplate {
|
|||
};
|
||||
|
||||
FontTemplate {
|
||||
identifier: identifier.into_string(),
|
||||
identifier: identifier.to_owned(),
|
||||
descriptor: None,
|
||||
weak_ref: maybe_weak_ref,
|
||||
strong_ref: maybe_strong_ref,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue