summaryrefslogtreecommitdiffstats
path: root/third_party/rust/glean-core/src/common_metric_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/glean-core/src/common_metric_data.rs')
-rw-r--r--third_party/rust/glean-core/src/common_metric_data.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/rust/glean-core/src/common_metric_data.rs b/third_party/rust/glean-core/src/common_metric_data.rs
index 9bda9bb462..f5058d995f 100644
--- a/third_party/rust/glean-core/src/common_metric_data.rs
+++ b/third_party/rust/glean-core/src/common_metric_data.rs
@@ -90,9 +90,10 @@ impl Clone for CommonMetricDataInternal {
impl From<CommonMetricData> for CommonMetricDataInternal {
fn from(input_data: CommonMetricData) -> Self {
+ let disabled = input_data.disabled;
Self {
- inner: input_data.clone(),
- disabled: AtomicU8::new(u8::from(input_data.disabled)),
+ inner: input_data,
+ disabled: AtomicU8::new(u8::from(disabled)),
}
}
}