Skip to content

Commit

Permalink
impl Default for Return.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Aug 28, 2024
1 parent 807b0af commit 4856217
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions java-spaghetti/src/refs/return_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ impl<'env, T: ReferenceType> Return<'env, T> {
self.object
}
}

impl<'env, T: ReferenceType> Default for Return<'env, T> {
fn default() -> Self {
Self::null()
}
}

0 comments on commit 4856217

Please sign in to comment.