Skip to content

Don't return TaffyResult when Taffy methods can't fail. #519

Open
@gibbz00

Description

What problem does this solve or what need does it fill?

Reduces the amount of end user unwrap calls.

What solution would you like?

Simply remove the result wrapping for the following Taffy methods:

  • new_leaf
  • new_with_children
  • compute_layout
  • new_leaf_with_measure
  • remove
  • children
  • layout
  • style
  • dirty

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    breaking-changeA change that breaks our public interfaceusabilityMake the library more comfortable to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions