aboutsummaryrefslogtreecommitdiffstats
path: root/components/profile/mem.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/profile/mem.rs')
-rw-r--r--components/profile/mem.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/profile/mem.rs b/components/profile/mem.rs
index 0bd91f7afed..becd2d05554 100644
--- a/components/profile/mem.rs
+++ b/components/profile/mem.rs
@@ -225,7 +225,7 @@ impl ReportsTree {
// Searches the tree's children for a path_seg match, and returns the index if there is a
// match.
- fn find_child(&self, path_seg: &String) -> Option<usize> {
+ fn find_child(&self, path_seg: &str) -> Option<usize> {
for (i, child) in self.children.iter().enumerate() {
if child.path_seg == *path_seg {
return Some(i);