mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement From<DOMString> for Atom
This commit is contained in:
parent
f7fb035188
commit
0adfb08089
20 changed files with 44 additions and 38 deletions
|
@ -129,8 +129,7 @@ impl AttrValue {
|
|||
}
|
||||
|
||||
pub fn from_atomic(string: DOMString) -> AttrValue {
|
||||
// FIXME(ajeffrey): convert directly from DOMString to Atom
|
||||
let value = Atom::from(&*string);
|
||||
let value = Atom::from(string);
|
||||
AttrValue::Atom(value)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue