Fix clippy lints.

This commit is contained in:
Emmanuel Gil Peyrot 2019-02-21 21:00:58 +01:00
commit 637c3eadd7
20 changed files with 56 additions and 75 deletions

View file

@ -398,8 +398,8 @@ impl TryFrom<Element> for ReasonElement {
"Reason doesnt contain a valid reason.",
))?;
Ok(ReasonElement {
reason: reason,
text: text,
reason,
text,
})
}
}
@ -449,8 +449,8 @@ impl Jingle {
/// Create a new Jingle element.
pub fn new(action: Action, sid: SessionId) -> Jingle {
Jingle {
action: action,
sid: sid,
action,
sid,
initiator: None,
responder: None,
contents: Vec::new(),