diff --git a/src/pulling_gauge.rs b/src/pulling_gauge.rs index 6f7e1444..bce0da1f 100644 --- a/src/pulling_gauge.rs +++ b/src/pulling_gauge.rs @@ -7,7 +7,7 @@ use crate::{ /// A [Gauge] that returns the value from a provided function on every collect run. /// -/// This metric is the equivalant of Go's +/// This metric is the equivalent of Go's /// /// /// # Examples @@ -28,7 +28,7 @@ use crate::{ #[derive(Clone)] pub struct PullingGauge { desc: crate::core::Desc, - value: Arc f64 + Send + Sync>>, + value: Arc f64 + Send + Sync>, } impl fmt::Debug for PullingGauge { @@ -48,7 +48,7 @@ impl PullingGauge { value: Box f64 + Send + Sync>, ) -> crate::Result { Ok(PullingGauge { - value: Arc::new(value), + value: Arc::from(value), desc: crate::core::Desc::new(name.into(), help.into(), Vec::new(), HashMap::new())?, }) }