Bug 2042422 - Remove needless borrows in labeled_memory_distribution.rs. r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D316190
This commit is contained in:
committed by
sledru@mozilla.com
parent
bd5a8eb9c6
commit
fec53586cc
@@ -151,10 +151,10 @@ impl BaseMetric for LabeledMemoryDistributionMetric {
|
||||
fn get_base_metric<'a>(&'a self) -> BaseMetricResult<'a, Self::BaseMetricT> {
|
||||
match self {
|
||||
LabeledMemoryDistributionMetric::Parent(memory_distribution_metric) => {
|
||||
BaseMetricResult::BaseMetric(&memory_distribution_metric)
|
||||
BaseMetricResult::BaseMetric(memory_distribution_metric)
|
||||
}
|
||||
LabeledMemoryDistributionMetric::Child { id, label } => {
|
||||
BaseMetricResult::IndexLabelPair(*id, &label)
|
||||
BaseMetricResult::IndexLabelPair(*id, label)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user