Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Luijken committed Sep 10, 2024
1 parent 4486f36 commit ff7db09
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions stellar_rust_sdk/src/models/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
mod response_models;
mod request_models;
mod response_models;

pub mod prelude {
pub use super::response_models::*;
pub use super::request_models::*;
pub use super::response_models::*;
pub use super::Request;
pub use super::Response;
}
Expand Down
4 changes: 2 additions & 2 deletions stellar_rust_sdk/src/order_book/details_request.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::models::Request;
use crate::models::prelude::AssetType;
use crate::models::Request;
pub struct SellingAsset(AssetType);
pub struct NoSellingAsset;
pub struct BuyingAsset(AssetType);
Expand Down Expand Up @@ -140,8 +140,8 @@ mod tests {

#[test]
fn test_details_request() {
use crate::models::prelude::{AssetType, AssetData};
use super::DetailsRequest;
use crate::models::prelude::{AssetData, AssetType};
use crate::models::Request;
let details_request = DetailsRequest::new()
.set_buying_asset(AssetType::Native)
Expand Down
4 changes: 1 addition & 3 deletions stellar_rust_sdk/src/order_book/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ pub mod prelude {

pub mod tests {


#[tokio::test]
async fn get_order_bookdetails() {

use crate::models::prelude::*;
use crate::horizon_client;
use crate::models::prelude::*;
use crate::order_book::prelude::DetailsRequest;

const BIDS_N: &u32 = &1;
Expand Down
3 changes: 1 addition & 2 deletions stellar_rust_sdk/src/paths/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ pub mod prelude {
#[cfg(test)]
mod tests {
use super::prelude::*;
use crate::models::prelude::*;
use super::{AssetType, IssuedOrNative};
use crate::models::prelude::*;
use crate::{horizon_client::HorizonClient, models::*};

const SOURCE_ASSET_TYPE: &str = "native";
Expand Down Expand Up @@ -191,7 +191,6 @@ mod tests {

let response = horizon_client.get_find_payment_paths(&request).await;


assert!(response.clone().is_ok());
let binding = response.unwrap();
let response = &binding.embedded().records()[0];
Expand Down
2 changes: 1 addition & 1 deletion stellar_rust_sdk/src/trades/all_trades_request.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::models::prelude::AssetType;
use crate::models::*;
use stellar_rust_sdk_derive::pagination;
use crate::models::prelude::AssetType;

/// Represents the base and counter assets. Contains an enum of one of the possible asset types.
#[derive(PartialEq, Debug)]
Expand Down

0 comments on commit ff7db09

Please sign in to comment.