commit 4559b69367d243917c20793cbd9a2f5364808db9
parent a3970084c76419c27a95164ae2f20a09dfa7c23a
Author: cy6erlion <dev@merely.tech>
Date: Tue, 12 Jan 2021 20:30:55 +0200
Remove println
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/fetch.rs b/src/fetch.rs
@@ -1,6 +1,5 @@
// Download RFC index file
pub fn index() -> Result<Vec<String>, minreq::Error> {
- println!("Fetching RFC index");
let response = minreq::get("https://www.rfc-editor.org/rfc-index.txt").send()?;
let data = scrape(response.as_str()?);
Ok(data)
@@ -8,10 +7,7 @@ pub fn index() -> Result<Vec<String>, minreq::Error> {
// Download RFC localy
pub fn rfc(sn: u32) -> Result<String, minreq::Error> {
- println!("Fetching RFC #{}", sn);
let address = format!("https://www.rfc-editor.org/rfc/rfc{}.txt", sn);
-
- println!("{}", address);
let response = minreq::get(&address).send()?;
Ok(String::from(response.as_str()?))
}