Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Garcia committed May 22, 2024
1 parent 327d5fe commit ae8bf2e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions proto-build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,13 @@ fn apply_cosmos_staking_patches(out_dir: &str) {
patch_file(format!("{out_dir}/cosmos.staking.v1beta1.rs"), REPLACEMENTS)
.expect("error patching cosmos.staking.v1beta1.rs");

const SERDE_REPLACEMENTS: &[(&str, &str)] = &[
("::Validators::", "::Policy::"),
];
const SERDE_REPLACEMENTS: &[(&str, &str)] = &[("::Validators::", "::Policy::")];

patch_file(format!("{out_dir}/cosmos.staking.v1beta1.serde.rs"), SERDE_REPLACEMENTS)
.expect("error patching cosmos.staking.v1beta1.serde.rs");
patch_file(
format!("{out_dir}/cosmos.staking.v1beta1.serde.rs"),
SERDE_REPLACEMENTS,
)
.expect("error patching cosmos.staking.v1beta1.serde.rs");
}

fn patch_file(path: impl AsRef<Path>, replacements: &[(&str, &str)]) -> io::Result<()> {
Expand Down

0 comments on commit ae8bf2e

Please sign in to comment.