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

@ -31,6 +31,7 @@ generate_attribute!(
generate_element!(
/// Client request for enabling stream management.
#[derive(Default)]
Enable, "enable", SM,
attributes: [
/// The preferred resumption time in seconds by the client.
@ -45,10 +46,7 @@ generate_element!(
impl Enable {
/// Generates a new `<enable/>` element.
pub fn new() -> Self {
Enable {
max: None,
resume: ResumeAttr::False,
}
Enable::default()
}
/// Sets the preferred resumption time in seconds.