-
Notifications
You must be signed in to change notification settings - Fork 181
Update to parley 0.3 #883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to parley 0.3 #883
Conversation
|
Can anyone tell why cargo clippy keeps failing on macOS? I don't see an actual error message, just an error exit status. |
|
You have to fix the tests that call the same API |
There is expander. |
DJMcNab
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small nit, but otherwise LGTM.
Thanks!
masonry/examples/custom_widget.rs
Outdated
| text_layout.align( | ||
| None, | ||
| Alignment::Start, | ||
| AlignmentOptions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use AlignmentOptions::default() here. The reason that the other parameters aren't in the options is because that Default impl exists (linebender/parley#283 (comment)), and we are using exactly the default value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I use AlignmentOptions::default() in the label widget too, or just in this example? And do you mean that I should use AlignmentOptions::default() instead of explicitly specifying the one option, or use ..AlignmentOptions::default() to allow for future extensibility?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the ambiguity. The first for both. That is, use AlignmentOptions::default() as the full parameter in both cases.
This update requires us to handle one breaking API change in parley.