mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 15:47:48 +00:00
Fix clippys
This commit is contained in:
parent
33411a7588
commit
6b11d936b3
3 changed files with 7 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue