From cd6bafd369888823527494b6a06c6e4e38230154 Mon Sep 17 00:00:00 2001 From: Chris Joel <0xcda7a@gmail.com> Date: Mon, 24 Oct 2022 15:18:25 -0700 Subject: [PATCH] Remove vestigial debugging --- rust/noosphere-api/src/client.rs | 2 -- rust/noosphere-cli/src/native/commands/sphere.rs | 2 -- rust/noosphere-cli/src/native/workspace.rs | 5 +---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/rust/noosphere-api/src/client.rs b/rust/noosphere-api/src/client.rs index 3afe544fa..c1ce8460d 100644 --- a/rust/noosphere-api/src/client.rs +++ b/rust/noosphere-api/src/client.rs @@ -167,8 +167,6 @@ where } pub async fn fetch(&self, params: &FetchParameters) -> Result { - // println!("FOOBAR"); - // println!("{:?}", serde_urlencoded::to_string(params)?); let url = Url::try_from(RouteUrl(&self.api_base, Route::Fetch, Some(params)))?; debug!("Client fetching blocks from {}", url); let capability = Capability { diff --git a/rust/noosphere-cli/src/native/commands/sphere.rs b/rust/noosphere-cli/src/native/commands/sphere.rs index e229681c3..7a8f57d0d 100644 --- a/rust/noosphere-cli/src/native/commands/sphere.rs +++ b/rust/noosphere-cli/src/native/commands/sphere.rs @@ -108,8 +108,6 @@ Type or paste the code here and press enter:"#, Some(cid_string) => cid_string, }; - println!("GOT: {}", cid_string); - Cid::from_str(cid_string.trim()) .map_err(|_| anyhow!("Could not parse the authorization identity as a CID"))?; diff --git a/rust/noosphere-cli/src/native/workspace.rs b/rust/noosphere-cli/src/native/workspace.rs index 6cd975326..a40a35b03 100644 --- a/rust/noosphere-cli/src/native/workspace.rs +++ b/rust/noosphere-cli/src/native/workspace.rs @@ -341,10 +341,7 @@ impl Workspace { ContentType::Bytes => None, ContentType::Unknown(content_type) => { match mime_guess::get_mime_extensions_str(&content_type) { - Some(extensions) => { - println!("markdown {:?}", extensions); - extensions.first().map(|str| String::from(*str)) - } + Some(extensions) => extensions.first().map(|str| String::from(*str)), None => None, } }