From 97e9fb29b550e063cbbc0f5474c2cbde6e602c97 Mon Sep 17 00:00:00 2001 From: Patrick Owen Date: Sat, 5 Oct 2024 16:13:05 -0400 Subject: [PATCH] Update and rerun gen-protos --- save/gen-protos/Cargo.toml | 2 +- save/src/protos.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/save/gen-protos/Cargo.toml b/save/gen-protos/Cargo.toml index 2bbb099f..c26ce914 100644 --- a/save/gen-protos/Cargo.toml +++ b/save/gen-protos/Cargo.toml @@ -5,4 +5,4 @@ edition = "2021" publish = false [dependencies] -prost-build = "0.13.1" +prost-build = "0.13.3" diff --git a/save/src/protos.rs b/save/src/protos.rs index fa03540a..d05816b8 100644 --- a/save/src/protos.rs +++ b/save/src/protos.rs @@ -48,8 +48,8 @@ impl ComponentType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ComponentType::Position => "POSITION", - ComponentType::Name => "NAME", + Self::Position => "POSITION", + Self::Name => "NAME", } } /// Creates an enum from field names used in the ProtoBuf definition.