bauer 0.5.0

A derive macro for automatically generating builders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
 --> tests/ui/adapter-wrong-type.fail.rs:5:34
  |
5 |     #[builder(adapter = |x: u32| char::from_u32(x))]
  |                                  ^^^^^^^^^^^^^^^^^ expected `char`, found `Option<char>`
6 |     field: char,
  |            ---- expected due to this
  |
  = note: expected type `char`
             found enum `Option<char>`
help: consider using `Option::expect` to unwrap the `Option<char>` value, panicking if the value is an `Option::None`
  |
5 |     #[builder(adapter = |x: u32| char::from_u32(x).expect("REASON"))]
  |                                                   +++++++++++++++++