Skip to content

Replace deprecated procedure syntax with explicit return type#328

Open
Mingun wants to merge 1 commit intokaitai-io:masterfrom
Mingun:replace-deprecated-syntax
Open

Replace deprecated procedure syntax with explicit return type#328
Mingun wants to merge 1 commit intokaitai-io:masterfrom
Mingun:replace-deprecated-syntax

Conversation

@Mingun
Copy link
Copy Markdown
Contributor

@Mingun Mingun commented Dec 24, 2025

This fixes 4 warnings (each is duplicated for JVM and JS target):

[warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/translators/RustTranslator.scala:151:48: procedure syntax is deprecated: instead, add `: Unit =` to explicitly declare `updateLastFoundMemberClass`'s return type [quickfixable]
[warn]   def updateLastFoundMemberClass(dt: DataType) {
[warn]                                                ^
[warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/translators/RustTranslator.scala:160:35: procedure syntax is deprecated: instead, add `: Unit =` to explicitly declare `resetLastFoundMemberClass`'s return type [quickfixable]
[warn]   def resetLastFoundMemberClass() {
[warn]                                   ^

This fixes 4 warnings (each is duplicated for JVM and JS target):

```
[warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/translators/RustTranslator.scala:151:48: procedure syntax is deprecated: instead, add `: Unit =` to explicitly declare `updateLastFoundMemberClass`'s return type [quickfixable]
[warn]   def updateLastFoundMemberClass(dt: DataType) {
[warn]                                                ^
[warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/translators/RustTranslator.scala:160:35: procedure syntax is deprecated: instead, add `: Unit =` to explicitly declare `resetLastFoundMemberClass`'s return type [quickfixable]
[warn]   def resetLastFoundMemberClass() {
[warn]                                   ^
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant