diff --git a/crates/metrics/src/label.rs b/crates/metrics/src/label.rs index a8b8564..9d9b143 100644 --- a/crates/metrics/src/label.rs +++ b/crates/metrics/src/label.rs @@ -67,8 +67,8 @@ pub struct EnumLabel(T); impl EnumLabel { /// Creates a new [`EnumLabel`]. - pub fn new(e: T) -> Self { - Self(e) + pub fn new(e: impl Into) -> Self { + Self(e.into()) } /// Convert this [`EnumLabel`] into the inner [`Enum`].