Skip to content

Commit

Permalink
fixing clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Apr 8, 2024
1 parent e1ddb27 commit e947cf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/cosmwasm/order/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub use cosmwasm_schema::cw_serde;
pub use cosmwasm_std::{Addr, Coin};
pub use cosmwasm_std::{StdError, Uint128, Uint64};
pub use cosmwasm_std::{StdError, Uint128};
pub use tuples::*;

pub use serde::{Deserialize, Serialize};
Expand Down
3 changes: 2 additions & 1 deletion contracts/cosmwasm/order/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ pub struct Filling {
#[cfg(test)]
mod test {
use cosmwasm_std::Coin;
use num_rational::Ratio;

use crate::prelude::*;
use crate::types::*;

#[test]
pub fn fill() {
let optimal_price = (Uint64::from(1u64), Uint64::from(1u64));
let optimal_price = Ratio::new(1u64, 1u64);
let mut order = OrderItem {
owner: Addr::unchecked("owner".to_string()),
msg: OrderSubMsg {
Expand Down

0 comments on commit e947cf9

Please sign in to comment.