From b7dcc81f2ea4106692300c070b905246af1e04b3 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sat, 6 Dec 2025 10:23:05 +0100 Subject: [PATCH] Fix build with newer version of toml_edit Workaround for https://github.com/toml-rs/toml/issues/1074 use toml_edit::Value::from explicitly in case the change gets reversed --- xtask/src/nodepackage.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xtask/src/nodepackage.rs b/xtask/src/nodepackage.rs index 18f3906867..6a94cffc6d 100644 --- a/xtask/src/nodepackage.rs +++ b/xtask/src/nodepackage.rs @@ -121,8 +121,11 @@ pub fn generate(sha1: Option) -> Result<(), Box> if let Some(dep_config) = dep_table[name].as_inline_table_mut() { if name.contains("slint") { if let Some(sha1) = &sha1 { - dep_config.insert("git", "https://github.com/slint-ui/slint".into()); - dep_config.insert("rev", sha1.into()); + dep_config.insert( + "git", + toml_edit::Value::from("https://github.com/slint-ui/slint"), + ); + dep_config.insert("rev", toml_edit::Value::from(sha1)); } } if dep_config.remove("workspace").is_some() {