Skip to content

Commit

Permalink
Re-build protos with latest version of informalsystems-pbjson-build (
Browse files Browse the repository at this point in the history
…#175)

* Re-build protos with latest version of `informalsystems-pbjson-build`

* Fix clippy warning
  • Loading branch information
romac authored Jan 8, 2024
1 parent 0e84b35 commit 51861fe
Show file tree
Hide file tree
Showing 53 changed files with 3,314 additions and 3,133 deletions.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
// This module setup is necessary because the generated code contains "super::" calls for dependencies.
#![cfg_attr(not(feature = "std"), no_std)]
#![deny(warnings, trivial_casts, trivial_numeric_casts, unused_import_braces)]
#![allow(clippy::large_enum_variant, clippy::derive_partial_eq_without_eq)]
#![allow(
clippy::large_enum_variant,
clippy::derive_partial_eq_without_eq,
clippy::needless_borrows_for_generic_args
)]
#![allow(rustdoc::bare_urls)]
#![forbid(unsafe_code)]

Expand Down
24 changes: 12 additions & 12 deletions src/prost/cosmos.app.v1alpha1.serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ impl<'de> serde::Deserialize<'de> for MigrateFromInfo {
formatter.write_str("struct cosmos.app.v1alpha1.MigrateFromInfo")
}

fn visit_map<V>(self, mut map: V) -> core::result::Result<MigrateFromInfo, V::Error>
fn visit_map<V>(self, mut map_: V) -> core::result::Result<MigrateFromInfo, V::Error>
where
V: serde::de::MapAccess<'de>,
{
let mut module__ = None;
while let Some(k) = map.next_key()? {
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::Module => {
if module__.is_some() {
return Err(serde::de::Error::duplicate_field("module"));
}
module__ = Some(map.next_value()?);
module__ = Some(map_.next_value()?);
}
}
}
Expand Down Expand Up @@ -178,32 +178,32 @@ impl<'de> serde::Deserialize<'de> for ModuleDescriptor {
formatter.write_str("struct cosmos.app.v1alpha1.ModuleDescriptor")
}

fn visit_map<V>(self, mut map: V) -> core::result::Result<ModuleDescriptor, V::Error>
fn visit_map<V>(self, mut map_: V) -> core::result::Result<ModuleDescriptor, V::Error>
where
V: serde::de::MapAccess<'de>,
{
let mut go_import__ = None;
let mut use_package__ = None;
let mut can_migrate_from__ = None;
while let Some(k) = map.next_key()? {
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::GoImport => {
if go_import__.is_some() {
return Err(serde::de::Error::duplicate_field("goImport"));
}
go_import__ = Some(map.next_value()?);
go_import__ = Some(map_.next_value()?);
}
GeneratedField::UsePackage => {
if use_package__.is_some() {
return Err(serde::de::Error::duplicate_field("usePackage"));
}
use_package__ = Some(map.next_value()?);
use_package__ = Some(map_.next_value()?);
}
GeneratedField::CanMigrateFrom => {
if can_migrate_from__.is_some() {
return Err(serde::de::Error::duplicate_field("canMigrateFrom"));
}
can_migrate_from__ = Some(map.next_value()?);
can_migrate_from__ = Some(map_.next_value()?);
}
}
}
Expand Down Expand Up @@ -294,26 +294,26 @@ impl<'de> serde::Deserialize<'de> for PackageReference {
formatter.write_str("struct cosmos.app.v1alpha1.PackageReference")
}

fn visit_map<V>(self, mut map: V) -> core::result::Result<PackageReference, V::Error>
fn visit_map<V>(self, mut map_: V) -> core::result::Result<PackageReference, V::Error>
where
V: serde::de::MapAccess<'de>,
{
let mut name__ = None;
let mut revision__ = None;
while let Some(k) = map.next_key()? {
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::Name => {
if name__.is_some() {
return Err(serde::de::Error::duplicate_field("name"));
}
name__ = Some(map.next_value()?);
name__ = Some(map_.next_value()?);
}
GeneratedField::Revision => {
if revision__.is_some() {
return Err(serde::de::Error::duplicate_field("revision"));
}
revision__ =
Some(map.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0)
Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0)
;
}
}
Expand Down
18 changes: 9 additions & 9 deletions src/prost/cosmos.auth.module.v1.serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,32 +86,32 @@ impl<'de> serde::Deserialize<'de> for Module {
formatter.write_str("struct cosmos.auth.module.v1.Module")
}

fn visit_map<V>(self, mut map: V) -> core::result::Result<Module, V::Error>
fn visit_map<V>(self, mut map_: V) -> core::result::Result<Module, V::Error>
where
V: serde::de::MapAccess<'de>,
{
let mut bech32_prefix__ = None;
let mut module_account_permissions__ = None;
let mut authority__ = None;
while let Some(k) = map.next_key()? {
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::Bech32Prefix => {
if bech32_prefix__.is_some() {
return Err(serde::de::Error::duplicate_field("bech32Prefix"));
}
bech32_prefix__ = Some(map.next_value()?);
bech32_prefix__ = Some(map_.next_value()?);
}
GeneratedField::ModuleAccountPermissions => {
if module_account_permissions__.is_some() {
return Err(serde::de::Error::duplicate_field("moduleAccountPermissions"));
}
module_account_permissions__ = Some(map.next_value()?);
module_account_permissions__ = Some(map_.next_value()?);
}
GeneratedField::Authority => {
if authority__.is_some() {
return Err(serde::de::Error::duplicate_field("authority"));
}
authority__ = Some(map.next_value()?);
authority__ = Some(map_.next_value()?);
}
}
}
Expand Down Expand Up @@ -202,25 +202,25 @@ impl<'de> serde::Deserialize<'de> for ModuleAccountPermission {
formatter.write_str("struct cosmos.auth.module.v1.ModuleAccountPermission")
}

fn visit_map<V>(self, mut map: V) -> core::result::Result<ModuleAccountPermission, V::Error>
fn visit_map<V>(self, mut map_: V) -> core::result::Result<ModuleAccountPermission, V::Error>
where
V: serde::de::MapAccess<'de>,
{
let mut account__ = None;
let mut permissions__ = None;
while let Some(k) = map.next_key()? {
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::Account => {
if account__.is_some() {
return Err(serde::de::Error::duplicate_field("account"));
}
account__ = Some(map.next_value()?);
account__ = Some(map_.next_value()?);
}
GeneratedField::Permissions => {
if permissions__.is_some() {
return Err(serde::de::Error::duplicate_field("permissions"));
}
permissions__ = Some(map.next_value()?);
permissions__ = Some(map_.next_value()?);
}
}
}
Expand Down
Loading

0 comments on commit 51861fe

Please sign in to comment.