Skip to content

Commit

Permalink
Incremental fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Dec 18, 2024
1 parent fea221a commit 16eef4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- let cbi = ci|get_callback_interface_definition(name) %}
{%- let cbi = ci.get_callback_interface_definition(name).unwrap() %}
{%- let methods = cbi.methods() %}
{%- let protocol_name = type_name.clone() %}
{%- let protocol_docstring = cbi.docstring() %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{- self.import_infra("pointerLiteralSymbol", "symbols") -}}
{{- self.import_infra("uniffiTypeNameSymbol", "symbols") -}}

{%- let obj = ci|get_object_definition(name) %}
{%- let obj = ci.get_object_definition(name).unwrap() %}
{%- let protocol_name = obj|type_name(self) %}
{%- let impl_class_name = obj|decl_type_name(self) %}
{%- let obj_factory = format!("uniffiType{}ObjectFactory", impl_class_name) %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- self.import_infra("RustBuffer", "ffi-types") }}
{{- self.import_infra("uniffiCreateRecord", "records") }}

{%- let rec = ci|get_record_definition(name) %}
{%- let rec = ci.get_record_definition(name).unwrap() %}
{%- call ts::docstring(rec, 0) %}
export type {{ type_name }} = {
{%- for field in rec.fields() %}
Expand Down

0 comments on commit 16eef4c

Please sign in to comment.