mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-01 00:50:57 +00:00
b681df0c93
The serde::Deserialize interface isn't always useful. Suppose we're going to make parsing of color tables stricter, we would have to process a string|table value. It could be encoded as an untagged enum in serde, but that means the error message has to be static str (e.g. "expected string or color table") and a detailed error (e.g. "invalid color name: xxx") would be lost. It's way easier to dispatch based on the ConfigValue type, than on serde data model. |
||
---|---|---|
.. | ||
benches | ||
gen-protos | ||
proc-macros | ||
src | ||
tests | ||
testutils | ||
Cargo.toml | ||
LICENSE |