Skip to content

Enable lints for all packages. - #57

Merged
xStrom merged 2 commits into
linebender:mainfrom
xStrom:lints-enabled
Apr 18, 2026
Merged

Enable lints for all packages.#57
xStrom merged 2 commits into
linebender:mainfrom
xStrom:lints-enabled

Conversation

@xStrom

@xStrom xStrom commented Apr 17, 2026

Copy link
Copy Markdown
Member

Lints are now enabled for all packages. The code changes satisfy Clippy.

@xStrom
xStrom marked this pull request as ready for review April 18, 2026 09:42

@DJMcNab DJMcNab left a comment

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.

Makes sense to me

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.

Hmm, what was the clippy error here?

@xStrom xStrom Apr 18, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Loss of data by truncating to u32, but the two local methods could just as well operate on usize without conversion. In practice even u16 would probably be enough. I went with usize because that's what the source data is already in and it matches the machine word size.

Comment thread kompari-tasks/src/task.rs Outdated
Comment on lines +16 to +19
#[expect(
missing_debug_implementations,
reason = "actions don't implement Debug"
)]

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.

A Debug super trait would also be reasonable to try here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good idea, switched it to a super trait.

@xStrom
xStrom enabled auto-merge April 18, 2026 13:28
@xStrom
xStrom added this pull request to the merge queue Apr 18, 2026
Merged via the queue into linebender:main with commit f252694 Apr 18, 2026
15 checks passed
@xStrom
xStrom deleted the lints-enabled branch April 18, 2026 13:30
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