mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
fix redundant closures in component/script/dom (#31917)
* fixed unnecessary conversions * resolved conflicts * resolved conflicts * fix redundant closures in component/script/dom * resolved conflicts * fixed formatting
This commit is contained in:
parent
f183170786
commit
1bc63801e7
26 changed files with 35 additions and 44 deletions
|
@ -69,12 +69,12 @@ impl PerformanceEntry {
|
|||
impl PerformanceEntryMethods for PerformanceEntry {
|
||||
// https://w3c.github.io/performance-timeline/#dom-performanceentry-name
|
||||
fn Name(&self) -> DOMString {
|
||||
DOMString::from(self.name.clone())
|
||||
self.name.clone()
|
||||
}
|
||||
|
||||
// https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype
|
||||
fn EntryType(&self) -> DOMString {
|
||||
DOMString::from(self.entry_type.clone())
|
||||
self.entry_type.clone()
|
||||
}
|
||||
|
||||
// https://w3c.github.io/performance-timeline/#dom-performanceentry-starttime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue