Skip to content

Derive SchemaWrite on empty struct fails. #112

@marcfir

Description

@marcfir

Having a struct like this

    #[derive(Debug, SchemaWrite)]
    struct ComplexType {

    }

gives me an

error[E0308]: mismatched types
   --> src/lib.rs
    |
    |     #[derive(Debug, SchemaWrite, Default, PartialEq)]
    |                     ^^^^^^^^^^^ expected `TypeMeta`, found `Option<_>`
    |
    = note: expected enum `wincode::TypeMeta`
               found enum `std::option::Option<_>`
    = note: this error originates in the derive macro `SchemaWrite` (in Nightly builds, run with -Z macro-backtrace for more info)
```
Is this intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions