mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -11,6 +11,8 @@ use dom::bindings::js::{MutNullableJS, JSRef, Temporary};
|
|||
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
||||
use dom::eventtarget::EventTarget;
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
use std::cell::Cell;
|
||||
use std::default::Default;
|
||||
|
||||
|
@ -77,7 +79,7 @@ impl Event {
|
|||
current_target: Default::default(),
|
||||
target: Default::default(),
|
||||
phase: Cell::new(EventPhase::None),
|
||||
type_: DOMRefCell::new("".into_string()),
|
||||
type_: DOMRefCell::new("".to_owned()),
|
||||
canceled: Cell::new(false),
|
||||
cancelable: Cell::new(false),
|
||||
bubbles: Cell::new(false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue