From 071106d94254d67388de64f0a7727732b345f413 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Tue, 24 Jan 2023 10:14:47 +0100 Subject: Use `toml_edit` instead of `toml` Since version 0.6, `toml` is a wrapper around `toml_edit`, and the more basic library already meets our needs. --- askama_derive/src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'askama_derive/src/config.rs') 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 { - 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"))] -- cgit