Make clippy happy (#3350)

This commit is contained in:
Jonas Platte
2025-09-28 19:15:42 +02:00
parent abe98474e1
commit 01ecea0e33
8 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -85,19 +85,19 @@ mod tests {
async fn spawn_app(host: impl Into<String>) -> String {
let host = host.into();
// Bind to localhost at the port 0, which will let the OS assign an available port to us
let listener = TcpListener::bind(format!("{}:0", host)).await.unwrap();
let listener = TcpListener::bind(format!("{host}:0")).await.unwrap();
// Retrieve the port assigned to us by the OS
let port = listener.local_addr().unwrap().port();
tokio::spawn(async {
axum::serve(listener, app()).await.unwrap();
});
// Returns address (e.g. http://127.0.0.1{random_port})
format!("http://{}:{}", host, port)
format!("http://{host}:{port}")
}
let listening_url = spawn_app("127.0.0.1").await;
let mut event_stream = reqwest::Client::new()
.get(format!("{}/sse", listening_url))
.get(format!("{listening_url}/sse"))
.header("User-Agent", "integration_test")
.send()
.await