mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 20:57:53 +08: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:
committed by
Clément DOUIN
parent
bd1ac45a58
commit
54287d40b8
+3
-4
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user