Skip to content

Commit 4231943

Browse files
committed
Fix inconsistent derived traits
Signed-off-by: Takaya Saeki <takaya@tetrate.io>
1 parent 10f4747 commit 4231943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub enum Status {
5050
}
5151

5252
#[repr(u32)]
53-
#[derive(Debug)]
53+
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
5454
pub enum ContextType {
5555
HttpContext = 0,
5656
StreamContext = 1,
@@ -99,7 +99,7 @@ pub enum StreamType {
9999
}
100100

101101
#[repr(u32)]
102-
#[derive(Debug)]
102+
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
103103
pub enum MetricType {
104104
Counter = 0,
105105
Gauge = 1,

0 commit comments

Comments
 (0)