summaryrefslogtreecommitdiffstats
path: root/src/repository/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repository/client.rs')
-rw-r--r--src/repository/client.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/repository/client.rs b/src/repository/client.rs
index 841625d..f5917d4 100644
--- a/src/repository/client.rs
+++ b/src/repository/client.rs
@@ -1,6 +1,7 @@
use std::io::Cursor;
use std::sync::Arc;
use std::ops::Deref;
+use std::result::Result as RResult;
use ipfs_api::IpfsClient;
use anyhow::Error;
@@ -30,6 +31,12 @@ use crate::types::util::IPNSHash;
#[derive(Clone)]
pub struct ClientFassade(Arc<IpfsClient>);
+impl std::fmt::Debug for ClientFassade {
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> RResult<(), std::fmt::Error> {
+ write!(f, "ClientFassade")
+ }
+}
+
impl ClientFassade {
fn new(host: &str, port: u16) -> Result<ClientFassade, Error> {
debug!("Creating new ClientFassade object: {}:{}", host, port);
@@ -81,7 +88,7 @@ impl ClientFassade {
}
/// Client wrapper for working with types directly on the client
-#[derive(Clone)]
+#[derive(Debug, Clone)]
pub struct TypedClientFassade(ClientFassade);
impl Deref for TypedClientFassade {