Skip to content

Commit

Permalink
remove display_confirm argument (#3719)
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 authored Feb 1, 2024
1 parent ec1228c commit c7aefdc
Show file tree
Hide file tree
Showing 6 changed files with 578 additions and 610 deletions.
Binary file modified crates/cnidarium/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.
2 changes: 0 additions & 2 deletions crates/proto/src/gen/penumbra.view.v1alpha1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,6 @@ pub struct EphemeralAddressRequest {
pub address_index: ::core::option::Option<
super::super::core::keys::v1alpha1::AddressIndex,
>,
#[prost(bool, tag = "2")]
pub display_confirm: bool,
}
impl ::prost::Name for EphemeralAddressRequest {
const NAME: &'static str = "EphemeralAddressRequest";
Expand Down
18 changes: 0 additions & 18 deletions crates/proto/src/gen/penumbra.view.v1alpha1.serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1924,16 +1924,10 @@ impl serde::Serialize for EphemeralAddressRequest {
if self.address_index.is_some() {
len += 1;
}
if self.display_confirm {
len += 1;
}
let mut struct_ser = serializer.serialize_struct("penumbra.view.v1alpha1.EphemeralAddressRequest", len)?;
if let Some(v) = self.address_index.as_ref() {
struct_ser.serialize_field("addressIndex", v)?;
}
if self.display_confirm {
struct_ser.serialize_field("displayConfirm", &self.display_confirm)?;
}
struct_ser.end()
}
}
Expand All @@ -1946,14 +1940,11 @@ impl<'de> serde::Deserialize<'de> for EphemeralAddressRequest {
const FIELDS: &[&str] = &[
"address_index",
"addressIndex",
"display_confirm",
"displayConfirm",
];

#[allow(clippy::enum_variant_names)]
enum GeneratedField {
AddressIndex,
DisplayConfirm,
__SkipField__,
}
impl<'de> serde::Deserialize<'de> for GeneratedField {
Expand All @@ -1977,7 +1968,6 @@ impl<'de> serde::Deserialize<'de> for EphemeralAddressRequest {
{
match value {
"addressIndex" | "address_index" => Ok(GeneratedField::AddressIndex),
"displayConfirm" | "display_confirm" => Ok(GeneratedField::DisplayConfirm),
_ => Ok(GeneratedField::__SkipField__),
}
}
Expand All @@ -1998,7 +1988,6 @@ impl<'de> serde::Deserialize<'de> for EphemeralAddressRequest {
V: serde::de::MapAccess<'de>,
{
let mut address_index__ = None;
let mut display_confirm__ = None;
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::AddressIndex => {
Expand All @@ -2007,20 +1996,13 @@ impl<'de> serde::Deserialize<'de> for EphemeralAddressRequest {
}
address_index__ = map_.next_value()?;
}
GeneratedField::DisplayConfirm => {
if display_confirm__.is_some() {
return Err(serde::de::Error::duplicate_field("displayConfirm"));
}
display_confirm__ = Some(map_.next_value()?);
}
GeneratedField::__SkipField__ => {
let _ = map_.next_value::<serde::de::IgnoredAny>()?;
}
}
}
Ok(EphemeralAddressRequest {
address_index: address_index__,
display_confirm: display_confirm__.unwrap_or_default(),
})
}
}
Expand Down
Binary file modified crates/proto/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.
Loading

0 comments on commit c7aefdc

Please sign in to comment.