ecaps2, forwarding, jingle_s5b, mam: Replace complex into expressions with .map(Element::from).
This commit is contained in:
parent
487dbdc6de
commit
cc563b46d2
4 changed files with 8 additions and 8 deletions
|
|
@ -147,8 +147,8 @@ impl From<Transport> for Element {
|
|||
.append(match transport.payload {
|
||||
TransportPayload::Candidates(mut candidates) => {
|
||||
candidates.drain(..)
|
||||
.map(|candidate| candidate.into())
|
||||
.collect::<Vec<Element>>()
|
||||
.map(Element::from)
|
||||
.collect::<Vec<_>>()
|
||||
},
|
||||
TransportPayload::Activated(cid) => {
|
||||
vec!(Element::builder("activated")
|
||||
|
|
|
|||
Loading…
Reference in a new issue