Skip to content

Commit

Permalink
Cleanup unused From implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jippeholwerda committed Oct 24, 2024
1 parent 9da10d8 commit ef7e5c3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions wallet_core/gba_hc_converter/src/bin/gba_fetch_frontend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use axum::{
Form, Router,
};
use axum_csrf::{CsrfConfig, CsrfLayer, CsrfToken};
use http::{request::Parts, HeaderValue, StatusCode};
use http::{request::Parts, StatusCode};
use nutype::nutype;
use serde::Deserialize;
use tokio::net::TcpListener;
Expand Down Expand Up @@ -43,7 +43,6 @@ async fn main() -> anyhow::Result<()> {
.from_env_lossy(),
);

let settings = Settings::new()?;
if settings.structured_logging {
builder.json().init();
} else {
Expand Down Expand Up @@ -119,14 +118,6 @@ async fn serve(settings: Settings) -> anyhow::Result<()> {
#[nutype(derive(Debug, Default), default = "unknown", validate(not_empty))]
struct CertSerial(String);

impl TryFrom<&HeaderValue> for CertSerial {
type Error = Error;

fn try_from(value: &HeaderValue) -> StdResult<Self, Self::Error> {
Ok(CertSerial::try_new(value.to_str().map_err(|err| anyhow!(err))?.to_string()).map_err(|err| anyhow!(err))?)
}
}

struct ExtractCertSerial(Option<CertSerial>);

#[async_trait]
Expand Down

0 comments on commit ef7e5c3

Please sign in to comment.