Fix more clippy warnings

This commit is contained in:
Jonas Platte
2021-08-25 11:30:34 +02:00
committed by Sean McArthur
parent 4be5ec7ffd
commit 2881354c90
6 changed files with 12 additions and 14 deletions

View File

@@ -2,5 +2,5 @@ pub mod server;
// TODO: remove once done converting to new support server?
#[allow(unused)]
pub static DEFAULT_USER_AGENT: &'static str =
pub static DEFAULT_USER_AGENT: &str =
concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));

View File

@@ -73,10 +73,10 @@ async fn connect_timeout() {
.build()
.unwrap();
let url = format!("http://10.255.255.1:81/slow");
let url = "http://10.255.255.1:81/slow";
let res = client
.get(&url)
.get(url)
.timeout(Duration::from_millis(1000))
.send()
.await;