Add implementation of Default for Entry

This commit is contained in:
messense 2016-03-17 13:29:58 +08:00
parent b6c9242db8
commit 74fddfd5cb

View file

@ -175,6 +175,13 @@ impl Entry {
}
impl Default for Entry {
fn default() -> Entry {
Entry::new()
}
}
impl RobotFileParser {
pub fn new<T: AsRef<str>>(url: T) -> RobotFileParser {
let parsed_url = Url::parse(url.as_ref()).unwrap();