replace into implementation with from

Reasons:
- From Implementation also implements Into trait.
- Adhere to the recommendation by the Into trait's comments.

Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
Perma Alesheikh 2024-01-09 13:22:05 +03:30 committed by Clément DOUIN
parent bd1ac45a58
commit 54287d40b8
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -803,10 +803,9 @@ impl Deref for BackendBuilder {
&self.builder
}
}
impl Into<email::backend::BackendBuilder<BackendContextBuilder>> for BackendBuilder {
fn into(self) -> email::backend::BackendBuilder<BackendContextBuilder> {
self.builder
impl From<BackendBuilder> for email::backend::BackendBuilder<BackendContextBuilder> {
fn from(backend_builder: BackendBuilder) -> Self {
backend_builder.builder
}
}