Support combination of Option + borrowed type + opaque type #2262
Labels
awaiting
Waiting for responses, PR, further discussions, upstream release, etc
enhancement
New feature or request
Describe the bug
I followed the docs in https://cjycode.com/flutter_rust_bridge/guides/types/arbitrary/rust-auto-opaque/overview
and created an optional argument:
However, the generated code doesn't compile in Rust:
In a real world example where I came across this issue, I've found a workaround by writing a method for the struct that calls the actual function: Tienisto/rhttp@efec498
Steps to reproduce
Logs
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
2.3.0
Flutter info
No response
Version of
clang++
No response
Additional context
I've created https://github.com/Tienisto/frb-optional-opaque-argument to reproduce the error but the example above should also work
The text was updated successfully, but these errors were encountered: