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
|
|
@ -16,7 +16,7 @@ generate_attribute!(
|
|||
);
|
||||
|
||||
/// A conference bookmark.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct Conference {
|
||||
/// Whether a conference bookmark should be joined automatically.
|
||||
pub autojoin: Autojoin,
|
||||
|
|
@ -37,13 +37,7 @@ pub struct Conference {
|
|||
impl Conference {
|
||||
/// Create a new conference.
|
||||
pub fn new() -> Conference {
|
||||
Conference {
|
||||
autojoin: Autojoin::False,
|
||||
name: None,
|
||||
nick: None,
|
||||
password: None,
|
||||
extensions: None,
|
||||
}
|
||||
Conference::default()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue