Skip to content

[clippy] remove return keyword#10462

Merged
ogoffart merged 3 commits into
slint-ui:masterfrom
Montel:remove_extra_return_keyword
Feb 13, 2026
Merged

[clippy] remove return keyword#10462
ogoffart merged 3 commits into
slint-ui:masterfrom
Montel:remove_extra_return_keyword

Conversation

@Montel
Copy link
Copy Markdown
Contributor

@Montel Montel commented Jan 16, 2026

No description provided.

tiling: (ImageTiling, ImageTiling),
) -> femtovg::ImageFlags {
let image_flags = match scaling {
(match scaling {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why we need parentheses here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without it we can't compile.
We need to return match value

@Montel Montel force-pushed the remove_extra_return_keyword branch from 717c127 to 16f7faa Compare February 13, 2026 13:59
@ogoffart ogoffart merged commit 3156baf into slint-ui:master Feb 13, 2026
37 checks passed
burhankhanzada pushed a commit to burhankhanzada/slint that referenced this pull request Feb 24, 2026
* [clippy] Use repeat_n vs take(...)

* [clippy] remove return keyword
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.

2 participants