@@ -136,8 +136,9 @@ impl Loader {
136 // Loads the theme data as `toml::Value` first from the user_dir then in default_dir
136 // Loads the theme data as `toml::Value` first from the user_dir then in default_dir
137 fn load_toml(&self, path: PathBuf) -> Result<Value> {
137 fn load_toml(&self, path: PathBuf) -> Result<Value> {
138 let data = std::fs::read(&path)?;
138 let data = std::fs::read(&path)?;
139+ let value = toml::from_slice(data.as_slice())?;
140− toml::from_slice(data.as_slice()).context("Failed to deserialize theme")
141+ Ok(value)
143 // Returns the path to the theme with the name
144 // Returns the path to the theme with the name