Clean up dead code.

This commit is contained in:
2025-04-21 22:29:15 -04:00
parent 393b66a9f5
commit a61474f38a
6 changed files with 10 additions and 67 deletions

View File

@ -60,7 +60,7 @@ where
{
type Rejection = Infallible;
async fn from_request_parts(parts: &mut Parts, state: &S) -> Result<Self, Self::Rejection> {
async fn from_request_parts(parts: &mut Parts, _state: &S) -> Result<Self, Self::Rejection> {
let Extension(cookies) = parts.extract::<Extension<Cookies>>().await.unwrap();
let Extension(mut state) = parts.extract::<Extension<MoreThanText>>().await.unwrap();
let req_id = match cookies.get(SESSION_KEY) {
@ -80,10 +80,7 @@ where
}
}
async fn mtt_conn(
sess_id: SessionID,
state: State<MoreThanText>,
) -> impl IntoResponse {
async fn mtt_conn(_sess_id: SessionID, _state: State<MoreThanText>) -> impl IntoResponse {
("something".to_string(),)
}
@ -141,7 +138,7 @@ mod servers {
.unwrap();
assert_eq!(initial.status(), StatusCode::OK);
let sessid = initial.headers().get(SET_COOKIE).unwrap();
let mut request = Request::builder()
let request = Request::builder()
.uri("/")
.header(COOKIE, sessid.clone())
.body(Body::empty())