mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 16:36:59 +03:00
clippy: fix needless_borrow
This commit is contained in:
@@ -427,7 +427,7 @@ fn normalize_address(addr: &str) -> Result<String, Error> {
|
||||
let new_addr = percent_decode_str(addr).decode_utf8()?;
|
||||
let new_addr = addr_normalize(&new_addr);
|
||||
|
||||
ensure!(may_be_valid_addr(&new_addr), "Bad e-mail address");
|
||||
ensure!(may_be_valid_addr(new_addr), "Bad e-mail address");
|
||||
|
||||
Ok(new_addr.to_string())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user