mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-05-24 12:35:49 +00:00
Add implementation of Default for Entry
This commit is contained in:
parent
b6c9242db8
commit
74fddfd5cb
1 changed files with 7 additions and 0 deletions
|
|
@ -175,6 +175,13 @@ impl Entry {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
impl Default for Entry {
|
||||||
|
fn default() -> Entry {
|
||||||
|
Entry::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
impl RobotFileParser {
|
impl RobotFileParser {
|
||||||
pub fn new<T: AsRef<str>>(url: T) -> RobotFileParser {
|
pub fn new<T: AsRef<str>>(url: T) -> RobotFileParser {
|
||||||
let parsed_url = Url::parse(url.as_ref()).unwrap();
|
let parsed_url = Url::parse(url.as_ref()).unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue