Skip to content

Commit

Permalink
fix: compile
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Apr 12, 2024
1 parent 4dd18de commit bf77a0c
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
Expand Up @@ -45,7 +45,7 @@ fn generate_array(
..Default::default()
},
namespace: array.namespace.clone(),
class_name: self_dart_api_type,
class_name: self_dart_api_type.clone(),
code: format!(
"
class {self_dart_api_type} extends NonGrowableListView<{inner_dart_api_type}> {{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl<'a> EnumRefApiDartGenerator<'a> {
.collect_vec()
.join("\n");

let name = self.ir.ident.0.name;
let name = &self.ir.ident.0.name;

Some(ApiDartGeneratedClass {
namespace: src.name.namespace.clone(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl<'a> ApiDartGeneratorClassTrait for RustOpaqueApiDartGenerator<'a> {

Some(ApiDartGeneratedClass {
namespace: self.ir.namespace.clone(),
class_name: dart_api_type,
class_name: dart_api_type.clone(),
code: format!(
"
// Rust type: {rust_api_type}
Expand Down

0 comments on commit bf77a0c

Please sign in to comment.