Skip to content

Commit

Permalink
suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardTibben authored and tluijken committed Jul 26, 2024
1 parent 9b4a557 commit a0308c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
6 changes: 3 additions & 3 deletions stellar_rust_sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`
Expand All @@ -220,7 +220,7 @@ pub mod claimable_balances;
/// # async fn example() -> Result<(), Box<dyn std::error::Error>> {
/// # 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)
Expand Down
9 changes: 0 additions & 9 deletions stellar_rust_sdk/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,6 @@ pub enum IncludeFailed {
#[default]
False,
}
//
// impl AsRef<str> 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 {
Expand Down

0 comments on commit a0308c3

Please sign in to comment.