From 76877bf85aa129c61673343c832f677493cdcd86 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 28 May 2018 17:27:21 +0200 Subject: [PATCH] jingle_s5b: Strenghten the types used by the payloads. --- src/jingle_s5b.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jingle_s5b.rs b/src/jingle_s5b.rs index 94f3c0c7..7456ff87 100644 --- a/src/jingle_s5b.rs +++ b/src/jingle_s5b.rs @@ -65,10 +65,10 @@ impl Candidate { #[derive(Debug, Clone)] pub enum TransportPayload { - Activated(String), + Activated(CandidateId), Candidates(Vec), CandidateError, - CandidateUsed(String), + CandidateUsed(CandidateId), ProxyError, None, } @@ -230,7 +230,7 @@ mod tests { sid: StreamId(String::from("coucou")), dstaddr: None, mode: Mode::Tcp, - payload: TransportPayload::Activated(String::from("coucou")), + payload: TransportPayload::Activated(CandidateId(String::from("coucou"))), }; let elem2: Element = transport.into(); assert!(elem.compare_to(&elem2));