Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
maltekliemann committed Oct 30, 2024
1 parent 84396ca commit 6ff1288
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
9 changes: 1 addition & 8 deletions zrml/neo-swaps/src/tests/buy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,7 @@ fn buy_fails_on_invalid_pool_type() {
let assets = pool.assets();

assert_noop!(
NeoSwaps::buy(
RuntimeOrigin::signed(BOB),
pool_id,
2,
assets[0],
_1,
0
),
NeoSwaps::buy(RuntimeOrigin::signed(BOB), pool_id, 2, assets[0], _1, 0),
Error::<Runtime>::InvalidPoolType,
);
});
Expand Down
4 changes: 1 addition & 3 deletions zrml/neo-swaps/src/tests/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
use super::*;
use crate::{
helpers::create_spot_prices,
liquidity_tree::{
traits::LiquidityTreeHelper, types::LiquidityTreeError,
},
liquidity_tree::{traits::LiquidityTreeHelper, types::LiquidityTreeError},
};
use alloc::collections::BTreeMap;
use test_case::test_case;
Expand Down
10 changes: 1 addition & 9 deletions zrml/neo-swaps/src/tests/sell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,16 +395,8 @@ fn sell_fails_on_invalid_pool_type() {
let assets = pool.assets();

assert_noop!(
NeoSwaps::sell(
RuntimeOrigin::signed(BOB),
pool_id,
2,
assets[0],
_1,
0
),
NeoSwaps::sell(RuntimeOrigin::signed(BOB), pool_id, 2, assets[0], _1, 0),
Error::<Runtime>::InvalidPoolType,
);
});
}

3 changes: 1 addition & 2 deletions zrml/neo-swaps/src/types/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Zeitgeist. If not, see <https://www.gnu.org/licenses/>.

use frame_support::BoundedVec;
use crate::{
consts::EXP_NUMERICAL_LIMIT,
math::{
Expand All @@ -29,7 +28,7 @@ use crate::{
};
use alloc::{fmt::Debug, vec::Vec};
use frame_support::{
storage::bounded_btree_map::BoundedBTreeMap, CloneNoBound, PartialEqNoBound,
storage::bounded_btree_map::BoundedBTreeMap, BoundedVec, CloneNoBound, PartialEqNoBound,
RuntimeDebugNoBound,
};
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
Expand Down

0 comments on commit 6ff1288

Please sign in to comment.