Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
swelf19 committed Aug 5, 2024
1 parent 3e78f13 commit 0c0b34f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/neutron_interchain_txs/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ fn execute_undelegate(
amount: amount.to_string(),
}),
};
let mut buf = Vec::new();
let mut buf = Vec::with_capacity(delegate_msg.encoded_len());
buf.reserve(delegate_msg.encoded_len());

if let Err(e) = delegate_msg.encode(&mut buf) {
Expand Down Expand Up @@ -403,7 +403,7 @@ fn do_delegate(
amount: info.amount.to_string(),
}),
};
let mut buf = Vec::new();
let mut buf = Vec::with_capacity(delegate_msg.encoded_len());
buf.reserve(delegate_msg.encoded_len());

if let Err(e) = delegate_msg.encode(&mut buf) {
Expand Down
2 changes: 1 addition & 1 deletion contracts/neutron_validator_test/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ fn execute_undelegate(
amount: amount.to_string(),
}),
};
let mut buf = Vec::new();
let mut buf = Vec::with_capacity(delegate_msg.encoded_len());
buf.reserve(delegate_msg.encoded_len());

if let Err(e) = delegate_msg.encode(&mut buf) {
Expand Down

0 comments on commit 0c0b34f

Please sign in to comment.