summaryrefslogtreecommitdiffstats
path: root/src/stackexchange/scraper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stackexchange/scraper.rs')
-rw-r--r--src/stackexchange/scraper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stackexchange/scraper.rs b/src/stackexchange/scraper.rs
index b1354fa..156c68f 100644
--- a/src/stackexchange/scraper.rs
+++ b/src/stackexchange/scraper.rs
@@ -325,7 +325,7 @@ mod tests {
);
match DuckDuckGo.parse(html, &sites, 2) {
- Err(Error::Scraping(s)) if s == "DuckDuckGo blocked this request".to_string() => Ok(()),
+ Err(Error::Scraping(s)) if s == *"DuckDuckGo blocked this request" => Ok(()),
_ => Err(String::from("Failed to detect DuckDuckGo blocker")),
}
}