From a0308c33e84ac7646d094d4b1d08f14fd91dd817 Mon Sep 17 00:00:00 2001 From: leonard Date: Fri, 26 Jul 2024 15:38:29 +0200 Subject: [PATCH] suggested changes --- stellar_rust_sdk/src/lib.rs | 6 +++--- stellar_rust_sdk/src/models/mod.rs | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/stellar_rust_sdk/src/lib.rs b/stellar_rust_sdk/src/lib.rs index c001b09..76ae58e 100644 --- a/stellar_rust_sdk/src/lib.rs +++ b/stellar_rust_sdk/src/lib.rs @@ -15,7 +15,7 @@ //! stabilization. //! //! #### Supported endpoints: -//! ![86%](https://progress-bar.dev/67/?width=200) +//! ![86%](https://progress-bar.dev/86/?width=200) //! * Accounts //! * Assets //! * Claimable balance @@ -205,7 +205,7 @@ pub mod claimable_balances; /// /// let base_url = "https://horizon-testnet.stellar.org".to_string(); /// let horizon_client = HorizonClient::new(base_url) -/// .expect("Failed to create Horizon Client");; +/// .expect("Failed to create Horizon Client"); /// ``` /// /// # Using the `HorizonClient` @@ -220,7 +220,7 @@ pub mod claimable_balances; /// # async fn example() -> Result<(), Box> { /// # let base_url = "https://horizon-testnet.stellar.org".to_string(); /// # let horizon_client = HorizonClient::new(base_url) -/// # .expect("Failed to create Horizon Client");; +/// # .expect("Failed to create Horizon Client"); /// let all_assets_request = AllAssetsRequest::new(); /// let accounts_response = horizon_client /// .get_all_assets(&all_assets_request) diff --git a/stellar_rust_sdk/src/models/mod.rs b/stellar_rust_sdk/src/models/mod.rs index f6d2a27..706b1f8 100644 --- a/stellar_rust_sdk/src/models/mod.rs +++ b/stellar_rust_sdk/src/models/mod.rs @@ -238,15 +238,6 @@ pub enum IncludeFailed { #[default] False, } -// -// impl AsRef for IncludeFailed { -// fn as_ref(&self) -> &str { -// match self { -// IncludeFailed::True => "true", -// IncludeFailed::False => "false", -// } -// } -// } impl std::fmt::Display for IncludeFailed { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {