Skip to content

Commit

Permalink
fix: missing derives
Browse files Browse the repository at this point in the history
  • Loading branch information
xDarksome committed Jul 1, 2024
1 parent 3aaaf27 commit a83329a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/metrics/src/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ where
///
/// type MyLabel = BoolLabel<{ label_name("my_label") }>;
/// ```
#[derive(Clone, Copy, Debug)]
pub struct BoolLabel<const NAME: LabelName>(bool);

impl<const NAME: LabelName> BoolLabel<NAME> {
Expand Down Expand Up @@ -216,6 +217,7 @@ where
///
/// type MyLabel = StringLabel<{ label_name("my_label") }>;
/// ```
#[derive(Clone, Copy, Debug)]
pub struct StringLabel<const NAME: u128, T = String>(pub T);

impl<const NAME: LabelName, T> StringLabel<NAME, T> {
Expand Down

0 comments on commit a83329a

Please sign in to comment.