mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
run cargo fix for rust 2024 changes and rustfmt
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
e97952b7f6
commit
a1e1f40ded
320 files changed
+2212
-2039
No files matched your search
@@ -1,6 +1,6 @@
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use conduwuit::{err, implement, trace, Config, Result};
|
||||
use conduwuit::{Config, Result, err, implement, trace};
|
||||
use either::Either;
|
||||
use ipaddress::IPAddress;
|
||||
use reqwest::redirect;
|
||||
@@ -172,10 +172,9 @@ fn base(config: &Config) -> Result<reqwest::ClientBuilder> {
|
||||
builder = builder.no_zstd();
|
||||
};
|
||||
|
||||
if let Some(proxy) = config.proxy.to_proxy()? {
|
||||
Ok(builder.proxy(proxy))
|
||||
} else {
|
||||
Ok(builder)
|
||||
match config.proxy.to_proxy()? {
|
||||
| Some(proxy) => Ok(builder.proxy(proxy)),
|
||||
| _ => Ok(builder),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user