~foss/archivebot

f98ebbbe3fc2be21150d20e20086b194c4764c1b — Foss 1 year, 6 months ago b682ee2
Remove warnings
1 files changed, 1 insertions(+), 2 deletions(-)

M src/urls.rs
M src/urls.rs => src/urls.rs +1 -2
@@ 1,4 1,3 @@
use std::collections::HashMap;
use url::Url;
use archiveis::ArchiveClient;
use futures::future::Future;


@@ 13,7 12,7 @@ pub fn archive_url<'a>(mut source_url: String) -> Option<String> {
        return None;
    }

    let mut url = Url::parse(source_url.as_str()).unwrap();
    let url = Url::parse(source_url.as_str()).unwrap();
    let host_str = url.host_str().unwrap();
    if host_str == "raddle.me" || host_str == "lfbg75wjgi4nzdio.onion" {
        return None;