mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
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
This commit is contained in:
parent
ffee1e01fb
commit
b7dcc81f2e
1 changed files with 5 additions and 2 deletions
|
|
@ -121,8 +121,11 @@ pub fn generate(sha1: Option<String>) -> Result<(), Box<dyn std::error::Error>>
|
|||
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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue