Skip to content

Conversation

@mwcampbell
Copy link
Contributor

This update requires us to handle one breaking API change in parley.

@mwcampbell
Copy link
Contributor Author

Can anyone tell why cargo clippy keeps failing on macOS? I don't see an actual error message, just an error exit status.

@waywardmonkeys
Copy link
Contributor

You have to fix the tests that call the same API

@burrbull
Copy link

burrbull commented Mar 8, 2025

I don't see an actual error message

There is expander.

Copy link
Member

@DJMcNab DJMcNab left a 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!

text_layout.align(
None,
Alignment::Start,
AlignmentOptions {
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

@DJMcNab DJMcNab Mar 10, 2025

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.

@mwcampbell mwcampbell added this pull request to the merge queue Mar 10, 2025
Merged via the queue into main with commit 7111350 Mar 10, 2025
18 checks passed
@mwcampbell mwcampbell deleted the parley-0.3 branch March 10, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants