Commit 8270899
committed
Fix inconsistent enum name in bindings generator
Example: when using godot-rust with the VoxelTools engine module, the api.json has many nested 'Result' types.
In some occurrences, these identifiers are prefixed with the containing class, e.g. VoxelStreamResult.
However, some references to these type names are not using the prefixed identifier, thus creating compile errors:
---------------------------------------------------------------------------------------------------------------------------------------------------------
error[E0425]: cannot find function, tuple struct or tuple variant `Result` in module `crate::generated::voxel_stream`
--> <path>/target/<toolchain>/debug/build/gdnative-bindings-6c3842bd5f0b6d58/out/generated.rs:3963:2992
|
3963 | ... ; crate :: generated :: voxel_stream :: Result (ret) } } # [doc = ""] # [doc = ""] # [inline] pub fn get_block_size (& self) -> Vecto...
| ^^^^^^ not found in `crate::generated::voxel_stream`
---------------------------------------------------------------------------------------------------------------------------------------------------------1 parent c1c1354 commit 8270899
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
| 404 | + | |
404 | 405 | | |
405 | 406 | | |
406 | 407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments