aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'askama_derive/src/config.rs')
-rw-r--r--askama_derive/src/config.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/askama_derive/src/config.rs b/askama_derive/src/config.rs
index 4dcf1ea..a075744 100644
--- a/askama_derive/src/config.rs
+++ b/askama_derive/src/config.rs
@@ -192,7 +192,8 @@ struct RawConfig {
impl RawConfig {
#[cfg(feature = "config")]
fn from_toml_str(s: &str) -> std::result::Result<RawConfig, CompileError> {
- toml::from_str(s).map_err(|e| format!("invalid TOML in {CONFIG_FILE_NAME}: {e}").into())
+ toml_edit::de::from_str(s)
+ .map_err(|e| format!("invalid TOML in {CONFIG_FILE_NAME}: {e}").into())
}
#[cfg(not(feature = "config"))]