alioth/serde-aco
Changyuan Lyu c54724c20a fix(aco)!: do not deserialize empty string to None
For a struct like

  struct Foo {
    path: PathBuf,
    param: Option<String>,
  }

to set `param` to `None`, it is more intuitive to write `path=foo`
than `path=foo,param=`. The latter looks more like setting `param` to
`Some("")`.

On the other hand, if the value is an id and the id points to an empty
string, it is interpreted as `None`.

Fixes: 8f3ba3445a ("fix(aco): differentiate `Some("")` from `None`")

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
2024-07-28 11:35:31 -07:00
..
src fix(aco)!: do not deserialize empty string to None 2024-07-28 11:35:31 -07:00
Cargo.toml build: move common values to workspace Cargo.toml 2024-07-23 23:13:03 -07:00