Skip to content

Commit c975660

Browse files
radiantgurlkhvzak
authored andcommitted
Set Default for LuaValue to be nil. (#512)
1 parent ef92a58 commit c975660

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/value.rs

+6
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,12 @@ impl Value {
569569
}
570570
}
571571

572+
impl Default for Value {
573+
fn default() -> Self {
574+
Self::Nil
575+
}
576+
}
577+
572578
impl fmt::Debug for Value {
573579
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
574580
if fmt.alternate() {

0 commit comments

Comments
 (0)