mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Change Namespace::to_str() to not allocate and return a reference.
This commit is contained in:
parent
28575c20bf
commit
61c7f2f220
5 changed files with 23 additions and 23 deletions
|
@ -75,7 +75,7 @@ impl Attr {
|
|||
}
|
||||
|
||||
pub fn GetNamespaceURI(&self) -> Option<DOMString> {
|
||||
self.namespace.to_str()
|
||||
self.namespace.to_str().map(|s| s.to_owned())
|
||||
}
|
||||
|
||||
pub fn GetPrefix(&self) -> Option<DOMString> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue