fix: compilation with latest taffy commit
Also adds `rev =` to `Cargo.toml` specifying the latest commit. A library like `libcosmic` shouldn't use git dependencies without specifying a commit or tag.
This commit is contained in:
parent
57f4abb8a0
commit
d1537b4c39
2 changed files with 3 additions and 2 deletions
|
|
@ -128,6 +128,7 @@ optional = true
|
|||
|
||||
[dependencies.taffy]
|
||||
git = "https://github.com/DioxusLabs/taffy"
|
||||
rev = "7781c70"
|
||||
features = ["grid"]
|
||||
|
||||
[workspace]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use iced_core::{Alignment, Length, Padding, Point, Size};
|
|||
use taffy::geometry::{Line, Rect};
|
||||
use taffy::style::{AlignItems, Dimension, Display, GridPlacement, Style};
|
||||
use taffy::style_helpers::{auto, length};
|
||||
use taffy::Taffy;
|
||||
use taffy::TaffyTree;
|
||||
|
||||
#[allow(clippy::too_many_lines)]
|
||||
pub fn resolve<Message>(
|
||||
|
|
@ -30,7 +30,7 @@ pub fn resolve<Message>(
|
|||
let mut leafs = Vec::with_capacity(items.len());
|
||||
let mut nodes = Vec::with_capacity(items.len());
|
||||
|
||||
let mut taffy = Taffy::<()>::with_capacity(items.len() + 1);
|
||||
let mut taffy = TaffyTree::<()>::with_capacity(items.len() + 1);
|
||||
|
||||
// Attach widgets as child nodes.
|
||||
for (child, assignment) in items.iter().zip(assignments.iter()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue