Skip to content

Commit

Permalink
TryFrom implementation is no longer needed
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
  • Loading branch information
StephenWakely committed Sep 6, 2023
1 parent b93ce58 commit 592d92b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/prometheus-parser/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ fn main() {
// prost automatically adds them already to enums, which causes the
// extra derives to conflict with itself.
prost_build.type_attribute("Label", "#[derive(Eq, Hash, Ord, PartialOrd)]");
prost_build.type_attribute("MetricType", "#[derive(num_enum::TryFromPrimitive)]");
prost_build
.compile_protos(
&["proto/prometheus-remote.proto"],
Expand Down

0 comments on commit 592d92b

Please sign in to comment.