Skip to content

Commit

Permalink
add Default trait
Browse files Browse the repository at this point in the history
  • Loading branch information
uzushino committed Dec 8, 2023
1 parent 2e5bf5e commit 160af0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ impl Voyager {
}
}

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

impl Drop for Voyager {
fn drop(&mut self) {
unsafe {
Expand Down

0 comments on commit 160af0f

Please sign in to comment.