parsers: Fix some issues reported by clippy.

This commit is contained in:
Emmanuel Gil Peyrot 2021-10-11 15:22:19 +02:00
commit 464b5de0d0
10 changed files with 23 additions and 46 deletions

View file

@ -9,6 +9,7 @@ use std::net::IpAddr;
generate_element!(
/// Wrapper element for an ICE-UDP transport.
#[derive(Default)]
Transport, "transport", JINGLE_ICE_UDP,
attributes: [
/// A Password as defined in ICE-CORE.
@ -29,12 +30,7 @@ generate_element!(
impl Transport {
/// Create a new ICE-UDP transport.
pub fn new() -> Transport {
Transport {
pwd: None,
ufrag: None,
candidates: Vec::new(),
fingerprint: None,
}
Transport::default()
}
/// Add a candidate to this transport.