Remove unneeded &'static

This commit is contained in:
Matthias Endler 2021-02-28 19:15:59 +01:00
parent 3a5e4ada2c
commit c496a292a6

View file

@ -3,8 +3,7 @@ use regex::Regex;
use reqwest::{Request, Url};
/// Sadly some pages only return plaintext results if Google is trying to crawl them.
const GOOGLEBOT: &'static str =
"Mozilla/5.0 (compatible; Googlebot/2.1; +http://google.com/bot.html)";
const GOOGLEBOT: &str = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://google.com/bot.html)";
#[derive(Debug, Clone)]
pub struct Quirk {