Skip to content

Commit

Permalink
Update uniffi_bindgen/src/bindings/kotlin/templates/ObjectTemplate.kt
Browse files Browse the repository at this point in the history
Co-authored-by: jhugman <jhugman@users.noreply.github.com>
  • Loading branch information
rfk and jhugman authored Jun 11, 2021
1 parent 9f1470d commit 76c8585
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ class {{ obj.name()|class_name_kt }}(
}
}

internal fun lower(): Pointer {
callWithPointer { ptr -> return ptr }
}
internal fun lower(): Pointer = callWithPointer { it }

internal fun write(buf: RustBufferBuilder) {
// The Rust code always expects pointers written as 8 bytes,
Expand Down

0 comments on commit 76c8585

Please sign in to comment.