mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
Don't crash when encounting the spin_on conditionaly dependency
I need to see if this is correct, but meanwhile this should fix the CI
This commit is contained in:
parent
9eecdefb35
commit
d6c109d456
1 changed files with 3 additions and 2 deletions
|
@ -358,8 +358,9 @@ impl CargoToml {
|
|||
Some(dep_table) => dep_table
|
||||
.iter()
|
||||
.filter_map(|(name, entry)| {
|
||||
CargoDependency::new(entry.as_value().unwrap())
|
||||
.map(|entry| (name.to_owned(), entry))
|
||||
entry.as_value().and_then(|entry| {
|
||||
CargoDependency::new(entry).map(|entry| (name.to_owned(), entry))
|
||||
})
|
||||
})
|
||||
.collect(),
|
||||
None => Vec::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue