mirror of
https://github.com/getzola/zola
synced 2024-12-13 13:52:28 +00:00
fixed warning (#912)
This commit is contained in:
parent
44a07a4a55
commit
046213ce28
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue