remove unused errors
This commit is contained in:
parent
a1a2aa2754
commit
c1727442d9
1 changed files with 0 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue