From ae8bf2ee02fc5884515f56e6b603f7f00c684757 Mon Sep 17 00:00:00 2001 From: Guy Garcia Date: Wed, 22 May 2024 19:25:43 -0400 Subject: [PATCH] lints --- proto-build/src/main.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index 637d9c9..24360e5 100644 --- a/proto-build/src/main.rs +++ b/proto-build/src/main.rs @@ -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, replacements: &[(&str, &str)]) -> io::Result<()> {