mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
Move the actual logic of email parsing to EmailAddress::new() (#3656)
Very small PR; Motivation: Easier navigation using Go-To-definition. Because, using go-to-definition of rust-analyzer on parse() doesn't take you to the actual parse() implementation but its trait definiton. On the other hand, it's very easy to find EmailAddress::new().
This commit is contained in:
@@ -740,7 +740,7 @@ impl SentMessage {
|
||||
.split(' ')
|
||||
.next()
|
||||
.expect("no recipient found");
|
||||
rcpt.parse().expect("failed to parse email address")
|
||||
EmailAddress::new(rcpt).expect("failed to parse email address")
|
||||
}
|
||||
|
||||
/// The raw message payload.
|
||||
|
||||
Reference in New Issue
Block a user