fixed warning (#912)

This commit is contained in:
djugei 2020-01-07 22:05:52 +01:00 committed by Vincent Prouillet
parent 44a07a4a55
commit 046213ce28

View file

@ -6,7 +6,6 @@ use config::LinkChecker;
use errors::Result;
use std::collections::HashMap;
use std::error::Error;
use std::sync::{Arc, RwLock};
#[derive(Clone, Debug, PartialEq)]
@ -96,7 +95,7 @@ pub fn check_url(url: &str, config: &LinkChecker) -> LinkResult {
LinkResult { code: None, error: Some(error_string) }
}
}
Err(e) => LinkResult { code: None, error: Some(e.description().to_string()) },
Err(e) => LinkResult { code: None, error: Some(e.to_string()) },
};
LINKS.write().unwrap().insert(url.to_string(), res.clone());