Skip to content

Commit

Permalink
chore: appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed Jan 3, 2025
1 parent b50a143 commit a1035e0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fn crosschain_swap() {
}

fn get_amount(
balances: &Vec<osmosis_test_tube::osmosis_std::types::cosmos::base::v1beta1::Coin>,
balances: &[osmosis_test_tube::osmosis_std::types::cosmos::base::v1beta1::Coin],
denom: &str,
) -> u128 {
balances
Expand Down
7 changes: 7 additions & 0 deletions cosmwasm/contracts/crosschain-swaps/tests/test_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ pub struct TestEnv {
pub crosschain_address: String,
pub owner: SigningAccount,
}

impl Default for TestEnv {
fn default() -> Self {
Self::new()
}
}

impl TestEnv {
pub fn new() -> Self {
let app = OsmosisTestApp::new();
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/contracts/swaprouter/tests/swap_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ fn assert_input_decreased_and_output_increased(
}

fn get_amount(
balances: &Vec<osmosis_test_tube::osmosis_std::types::cosmos::base::v1beta1::Coin>,
balances: &[osmosis_test_tube::osmosis_std::types::cosmos::base::v1beta1::Coin],
denom: &str,
) -> u128 {
balances
Expand Down
7 changes: 7 additions & 0 deletions cosmwasm/contracts/swaprouter/tests/test_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ pub struct TestEnv {
pub contract_address: String,
pub owner: SigningAccount,
}

impl Default for TestEnv {
fn default() -> Self {
Self::new()
}
}

impl TestEnv {
pub fn new() -> Self {
let app = OsmosisTestApp::new();
Expand Down

0 comments on commit a1035e0

Please sign in to comment.