mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-22 11:00:19 +00:00
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:
parent
bd1ac45a58
commit
54287d40b8
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue