aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceentry.rs
diff options
context:
space:
mode:
authorEkta Siwach <137225906+ektuu@users.noreply.github.com>2024-03-28 14:36:02 +0530
committerGitHub <noreply@github.com>2024-03-28 09:06:02 +0000
commit1bc63801e79273bd976530af498a43f0b9c7c93b (patch)
tree18e1a549672397b72e1fec7d462ded5cc3bbf418 /components/script/dom/performanceentry.rs
parentf18317078601afad18188f1bad0a33e59ba8303c (diff)
downloadservo-1bc63801e79273bd976530af498a43f0b9c7c93b.tar.gz
servo-1bc63801e79273bd976530af498a43f0b9c7c93b.zip
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
Diffstat (limited to 'components/script/dom/performanceentry.rs')
-rw-r--r--components/script/dom/performanceentry.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/performanceentry.rs b/components/script/dom/performanceentry.rs
index 2056a8daf99..1624a7f15fa 100644
--- a/components/script/dom/performanceentry.rs
+++ b/components/script/dom/performanceentry.rs
@@ -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