Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
subnomo committed Dec 17, 2018
1 parent bd54f5f commit f5eeb73
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,18 +309,21 @@ fn export(client: &reqwest::Client, posts: Vec<Post>, file: String) {

let dl = download_url(&client, url.clone(), format!("export/{}", filename));

content = content.replace(&url, &match dl {
Ok(p) => match p {
Some(path) => {
let src = path.to_str().unwrap();
src.to_string()
content = content.replace(
&url,
&match dl {
Ok(p) => match p {
Some(path) => {
let src = path.to_str().unwrap();
src.to_string()
}

None => "Could not fetch object".to_string(),
},

None => "Could not fetch object".to_string(),
_ => "Could not fetch object".to_string(),
},

_ => "Could not fetch object".to_string(),
});
);
}

card = card.replace("{{body}}", &content);
Expand Down

0 comments on commit f5eeb73

Please sign in to comment.