Replace Into<Element> with From<…> for Element.
This allows Element::from() to work, and since Into<Element> is automatically implemented for any type implementing From there is no change to existing code.
This commit is contained in:
parent
5ec921fa6f
commit
487dbdc6de
28 changed files with 266 additions and 265 deletions
|
|
@ -78,9 +78,9 @@ impl TryFrom<Element> for IBB {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<Element> for IBB {
|
||||
fn into(self) -> Element {
|
||||
match self {
|
||||
impl From<IBB> for Element {
|
||||
fn from(ibb: IBB) -> Element {
|
||||
match ibb {
|
||||
IBB::Open { block_size, sid, stanza } => {
|
||||
Element::builder("open")
|
||||
.ns(ns::IBB)
|
||||
|
|
|
|||
Loading…
Reference in a new issue