Skip to content

Commit

Permalink
Set Default for LuaValue to be nil. (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
radiantgurl authored and khvzak committed Jan 27, 2025
1 parent ef92a58 commit c975660
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,12 @@ impl Value {
}
}

impl Default for Value {
fn default() -> Self {
Self::Nil
}
}

impl fmt::Debug for Value {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
if fmt.alternate() {
Expand Down

0 comments on commit c975660

Please sign in to comment.