mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -19,6 +19,8 @@ use dom::virtualmethods::VirtualMethods;
|
|||
|
||||
use cssparser::RGBA;
|
||||
use servo_util::str::{mod, DOMString};
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
use std::cell::Cell;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -106,7 +108,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLBodyElement> {
|
|||
};
|
||||
evtarget.set_event_handler_uncompiled(cx, url, reflector,
|
||||
name.slice_from(2),
|
||||
attr.value().as_slice().into_string());
|
||||
attr.value().as_slice().to_owned());
|
||||
}
|
||||
|
||||
match attr.local_name() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue