Skip to content

Commit f773b8b

Browse files
committed
remove const fn
1 parent a4a6d39 commit f773b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/histogram.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl Debug for Histogram {
104104
impl Histogram {
105105
/// Record a value.
106106
#[inline]
107-
pub const fn measure(&self, raw_value: u64) {
107+
pub fn measure(&self, raw_value: u64) {
108108
#[cfg(feature = "metrics")]
109109
{
110110
let value_float: f64 = raw_value as f64;
@@ -123,7 +123,7 @@ impl Histogram {
123123

124124
/// Retrieve a percentile [0-100]. Returns NAN if no metrics have been
125125
/// collected yet.
126-
pub const fn percentile(&self, p: f64) -> f64 {
126+
pub fn percentile(&self, p: f64) -> f64 {
127127
#[cfg(feature = "metrics")]
128128
{
129129
assert!(p <= 100., "percentiles must not exceed 100.0");

0 commit comments

Comments
 (0)