remove unreachable error code
This commit is contained in:
parent
6b8589575c
commit
edaf9e50f3
1 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,7 @@ pub(crate) const CREATE_QUERY: &str =
|
||||||
const ID_QUERY: &str = "select * from witches where id = $1";
|
const ID_QUERY: &str = "select * from witches where id = $1";
|
||||||
|
|
||||||
//-************************************************************************
|
//-************************************************************************
|
||||||
// Result types for user creation
|
// Error types for user creation
|
||||||
//-************************************************************************
|
//-************************************************************************
|
||||||
|
|
||||||
#[Error(desc = "Could not create user.")]
|
#[Error(desc = "Could not create user.")]
|
||||||
|
@ -51,7 +51,6 @@ pub enum CreateUserErrorKind {
|
||||||
#[error(desc = "Display name must be less than 100 characters long")]
|
#[error(desc = "Display name must be less than 100 characters long")]
|
||||||
BadDisplayname,
|
BadDisplayname,
|
||||||
BadEmail,
|
BadEmail,
|
||||||
MissingFields,
|
|
||||||
UnknownDBError,
|
UnknownDBError,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue