Skip to content

Commit c94943f

Browse files
committed
refactor: Fix lint errors
1 parent c6688a1 commit c94943f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pcap-server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async fn main() -> std::io::Result<()> {
2020
.parse()
2121
.expect("PORT must be a valid u16");
2222

23-
info!("Starting server on port {}", port);
23+
info!("Starting server on port {port}");
2424

2525
HttpServer::new(move || {
2626
App::new()

pcap-server/tests/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub async fn test_upload(
2020
) {
2121
let private_key = std::env::var("TEST_PRIVATE_KEY").expect("TEST_PRIVATE_KEY must be set");
2222

23-
let mut app = test::init_service(
23+
let app = test::init_service(
2424
App::new()
2525
.wrap(Logger::default())
2626
.wrap(ErrorHandlers::new().handler(StatusCode::NOT_FOUND, handle_not_found))
@@ -44,7 +44,7 @@ pub async fn test_upload(
4444
.set_payload(body)
4545
.to_request();
4646

47-
let rsp = test::call_service(&mut app, req).await;
47+
let rsp = test::call_service(&app, req).await;
4848

4949
assert!(rsp.status().is_success());
5050
}

0 commit comments

Comments
 (0)