]> Untitled Git - lemmy.git/commitdiff
Removed debug line
authorAndre Vallestero <andrevallestero@gmail.com>
Thu, 7 May 2020 00:46:00 +0000 (20:46 -0400)
committerAndre Vallestero <andrevallestero@gmail.com>
Thu, 7 May 2020 00:46:00 +0000 (20:46 -0400)
server/src/lib.rs

index 1c24f0b4c89a6652332c68edba90edba55bc4bec..f7d2b0e9468d734d90cce541771671d76969a44e 100644 (file)
@@ -185,7 +185,6 @@ pub fn fetch_pictshare(image_url: &str) -> Result<PictshareResponse, failure::Er
     utf8_percent_encode(image_url, NON_ALPHANUMERIC)
   );
   let text = isahc::get(&fetch_url)?.text()?;
-  println!("--------------{}", text);
   let res: PictshareResponse = serde_json::from_str(&text)?;
   Ok(res)
 }
@@ -224,7 +223,7 @@ fn fetch_iframely_and_pictshare_data(
       Some(url) => match fetch_pictshare(&url) {
         // Try to generate a small thumbnail if iframely is not supported
         Ok(res) => {
-          let mut split_url: Vec<&str> = res.url.split("/").collect();
+          let mut split_url: Vec<&str> = res.url.split('/').collect();
           split_url.insert(split_url.len() - 1, "192");
           Some(split_url.join("/"))
         }