Skip to content

Commit 53ba240

Browse files
committed
fix clippy errors not being fixed on main
1 parent 6ee2bc7 commit 53ba240

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

logs/app.log.2025-02-06

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,17 @@
2727
2025-02-06T18:25:52.921540Z TRACE axum::serve: received graceful shutdown signal. Telling tasks to shutdown
2828
2025-02-06T18:25:52.921592Z TRACE axum::serve: signal received, not accepting new connections
2929
2025-02-06T18:25:52.921673Z TRACE axum::serve: waiting for 0 task(s) to finish
30+
2025-02-06T18:27:16.433390Z INFO hydroxide: Server listening on 0.0.0.0:80
31+
2025-02-06T18:27:17.303149Z INFO hydroxide: Shutting down server...
32+
2025-02-06T18:27:17.303228Z TRACE axum::serve: received graceful shutdown signal. Telling tasks to shutdown
33+
2025-02-06T18:27:17.303287Z TRACE axum::serve: signal received, not accepting new connections
34+
2025-02-06T18:27:17.303370Z TRACE axum::serve: waiting for 0 task(s) to finish
35+
2025-02-06T18:30:44.896200Z INFO hydroxide: Server listening on 0.0.0.0:80
36+
2025-02-06T18:30:50.599299Z TRACE axum::serve: connection 127.0.0.1:56478 accepted
37+
2025-02-06T18:30:50.832827Z TRACE axum::serve: connection 127.0.0.1:56480 accepted
38+
2025-02-06T18:30:50.848369Z ERROR hydroxide: 404 - Not Found: PROPFIND /u/Caznix/Harbr/
39+
2025-02-06T18:30:50.848465Z ERROR hydroxide: 404 - Not Found: PROPFIND /u/Caznix/Harbr/
40+
2025-02-06T18:32:19.185489Z INFO hydroxide: Shutting down server...
41+
2025-02-06T18:32:19.185543Z TRACE axum::serve: received graceful shutdown signal. Telling tasks to shutdown
42+
2025-02-06T18:32:19.185606Z TRACE axum::serve: signal received, not accepting new connections
43+
2025-02-06T18:32:19.185739Z TRACE axum::serve: waiting for 0 task(s) to finish

src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use tracing_subscriber::layer::Filter;
1515
use tracing_subscriber::{fmt, prelude::*, Registry};
1616

1717
#[derive(Clone)]
18+
#[allow(dead_code)]
1819
struct GitServer {
1920
instance_url: String,
2021
router: Router<GitServer>,
@@ -45,7 +46,7 @@ async fn main() {
4546
.route("/u/{user}/{repo_name}/{*path}", get(handle_repo))
4647
.fallback(fallback);
4748
let state = GitServer {
48-
addr: addr.clone(),
49+
addr,
4950
instance_url: format!("http://{}", addr),
5051
router: router.clone(),
5152
};
@@ -153,15 +154,15 @@ async fn handle_repo(
153154
}
154155
async fn fallback(
155156
uri: axum::http::Uri,
156-
State(state): State<GitServer>,
157+
State(_state): State<GitServer>,
157158
method: axum::http::Method,
158159
) -> impl IntoResponse {
159-
let mut msg = format!("404 - Not Found: {} {}", method, uri);
160+
let msg = format!("404 - Not Found: {} {}", method, uri);
160161
error!("{}", msg);
161162
if let Some(uri) = uri.query() {
162163
let uri = uri.to_string();
163164
if uri.contains("service=git") {
164-
let instance_url = state.instance_url;
165+
// let instance_url = state.instance_url;
165166
}
166167
}
167168
error!("{}", msg);

0 commit comments

Comments
 (0)