Commit 37ad2fb5 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Fix clippy complaint 'wildcard pattern covers any other pattern as it will match anyway'

parent 1f174b1f
......@@ -958,12 +958,14 @@ fn oauth<C>(req: &mut Request) -> IronResult<Response>
foreign_type: match user_data.userType.as_ref() {
"a" | "A" => UserType::Admin,
"t" | "T" => UserType::Teacher,
"s" | "S" | _ => UserType::User,
"s" | "S" => UserType::User,
_ => UserType::User,
},
gender: match user_data.gender.as_ref() {
"m" | "M" => UserGender::Male,
"f" | "F" | "w" | "W" => UserGender::Female,
"?" | _ => UserGender::Unknown,
"?" => UserGender::Unknown,
_ => UserGender::Unknown,
},
firstname: user_data.firstName,
lastname: user_data.lastName };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment