forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70887b7378
The `From<Value>` implementation for `Theme` converted the Value to a string and re-parsed the string to convert it to `HashMap<String, Value>` which feels a bit wasteful. This change uses the underlying `toml::map::Map` directly when the value is a table and warns about the unexpected `Value` shape otherwise. This is necessary because toml 0.6.0 changes the Display implementation for Value::Table so that the `to_string` no longer encodes the value as a Document, just a Value. So the parse of the Value fails to be decoded as a HashMap. The behavior for returning `Default::default` matches the previous code's behavior except that it did not warn when the input Value was failed to parse. |
2 years ago | |
---|---|---|
.. | ||
handlers | 2 years ago | |
base64.rs | 2 years ago | |
clipboard.rs | 2 years ago | |
document.rs | 2 years ago | |
editor.rs | 2 years ago | |
env.rs | 2 years ago | |
graphics.rs | 2 years ago | |
gutter.rs | 2 years ago | |
info.rs | 2 years ago | |
input.rs | 2 years ago | |
keyboard.rs | 2 years ago | |
lib.rs | 2 years ago | |
macros.rs | 2 years ago | |
theme.rs | 2 years ago | |
tree.rs | 2 years ago | |
view.rs | 2 years ago |