Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove display_confirm field #3719

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading