Enable more lints

This commit is contained in:
Andras Schmelczer 2024-12-18 21:33:30 +00:00
parent 3f73578fc9
commit da0e5f7373
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
12 changed files with 17 additions and 12 deletions

View file

@ -35,7 +35,7 @@ pub async fn create_server(app_state: AppState) -> Result<()> {
let mut api = OpenApi {
info: Info {
description: Some("an example API".to_string()),
description: Some("an example API".to_owned()),
..Info::default()
},
..OpenApi::default()
@ -82,7 +82,7 @@ pub async fn create_server(app_state: AppState) -> Result<()> {
let listener = tokio::net::TcpListener::bind(address.clone())
.await
.with_context(|| format!("Failed to bind to address: {}", address))?;
.with_context(|| format!("Failed to bind to address: {address}"))?;
info!(
"Listening on http://{}",