parsers: Fix some issues reported by clippy.
This commit is contained in:
parent
ebf1091cf1
commit
464b5de0d0
10 changed files with 23 additions and 46 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue