remove unused errors

This commit is contained in:
Paul Zinselmeyer 2023-10-23 22:33:52 +02:00
parent a1a2aa2754
commit c1727442d9
Signed by: pfzetto
GPG key ID: 4EEF46A5B276E648

View file

@ -24,12 +24,6 @@ pub enum Error {
#[error("hex error: {:?}", 0)]
Hex(#[from] hex::FromHexError),
#[error("could not parse ttl")]
ParseTtl,
#[error("encryption error")]
ChaCha,
#[error("oidc redirect")]
Oidc(Response),
@ -54,7 +48,6 @@ impl IntoResponse for Error {
Self::DataFileExists => {
(StatusCode::CONFLICT, "bin already contains data\n").into_response()
}
Self::ParseTtl => (StatusCode::BAD_REQUEST, "invalid ttl class\n").into_response(),
Self::Oidc(response) => response.into_response(),
Self::InvalidMultipart => {
(StatusCode::BAD_REQUEST, "invalid multipart data").into_response()