Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpombrio committed Mar 19, 2024
1 parent 1a36139 commit 357211f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/language/indexed_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ impl<T> IndexedMap<T> {
}
}

impl<T> Default for IndexedMap<T> {
fn default() -> Self {
Self::new()
}
}

impl<T> Index<&str> for IndexedMap<T> {
type Output = T;

Expand Down
6 changes: 6 additions & 0 deletions src/language/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ impl DocStorage {
}
}

impl Default for DocStorage {
fn default() -> Self {
DocStorage::new()
}
}

impl Node {
/****************
* Constructors *
Expand Down
6 changes: 6 additions & 0 deletions src/language/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ impl Text {
}
}

impl Default for Text {
fn default() -> Self {
Text::new()
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 357211f

Please sign in to comment.