Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enum variants flagged fields writing #2

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

hacker-volodya
Copy link
Contributor

Fixes a error when using flags in enums:

#[derive(TlWrite)]
enum EnumWithFlags {
    Named {
        #[tl(flags)]
        flags: (),
        #[tl(flags_bit = 0)]
        value_1: Option<u32>,
    },
    Unnamed(#[tl(flags)] (), #[tl(flags_bit = 0)] Option<u32>)
}
error[E0614]: type `bool` cannot be dereferenced
   --> test_suite\tests\tl_write.rs:103:14
    |
103 |     #[derive(TlWrite)]
    |              ^^^^^^^
    |
    = note: this error originates in the derive macro `TlWrite` (in Nightly builds, run with -Z macro-backtrace for more info)

@Rexagon Rexagon merged commit c05cc77 into broxus:master Mar 25, 2024
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.

2 participants