Skip to content

Commit

Permalink
no need to lowercase account name
Browse files Browse the repository at this point in the history
  • Loading branch information
0123456789-jpg committed Dec 30, 2023
1 parent 929a0a3 commit f014ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handle/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ pub enum GetInfoRes {
impl GetInfoRes {
fn from_simple(account: &Account) -> Self {
Self::Simple {
name: account.name().to_ascii_lowercase(),
name: account.name().to_owned(),
email: account.email().to_owned(),
departments: account
.tags()
Expand All @@ -409,7 +409,7 @@ impl GetInfoRes {

fn from_full(account: &Account) -> Self {
Self::Full {
name: account.name().to_ascii_lowercase(),
name: account.name().to_owned(),
email: account.email().to_owned(),
school_id: account.school_id().to_owned(),
phone: account.phone(),
Expand Down

0 comments on commit f014ab7

Please sign in to comment.