Fix clippys

This commit is contained in:
Matthew Esposito 2024-05-29 18:44:19 -04:00
parent 33411a7588
commit 6b11d936b3
3 changed files with 7 additions and 5 deletions

View file

@ -182,8 +182,8 @@ fn request(method: &'static Method, path: String, redirect: bool, quarantine: bo
};
// Check if multi sub requested. If so, replace "Android" with a tricky word.
if path.contains("+") {
user_agent = user_agent.replace("Android", "Android");
if path.contains('+') {
user_agent = user_agent.replace("Android", "Andr\u{200B}oid");
}
// Build request to Reddit. When making a GET, request gzip compression.