Skip to content

Clippy fixes - #1466

Merged
Ralith merged 5 commits into
quinn-rs:mainfrom
StygianLightning:clippy-fixes
Dec 10, 2022
Merged

Clippy fixes#1466
Ralith merged 5 commits into
quinn-rs:mainfrom
StygianLightning:clippy-fixes

Conversation

@StygianLightning

Copy link
Copy Markdown
Contributor

I checked the examples and found a typo in one of the examples and an allowed lint as a workaround to a bug that's since been fixed. The other commits fix some clippy lints that show up on nightly.

djc
djc previously approved these changes Dec 7, 2022

@djc djc 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.

Nice, thanks!

@StygianLightning

Copy link
Copy Markdown
Contributor Author

No worries!
There's one thing I'm not sure about, and that's the use of these allow annotations:

#[allow(clippy::unnecessary_cast)] // self.hdr.msg_controllen defined as size_t

I thought size_t was platform specific, but I looked it up earlier, and it's defined unconditionally as a type alias for usize, so maybe it would make sense to remove these annotations and the cast.

@Ralith

Ralith commented Dec 8, 2022

Copy link
Copy Markdown
Collaborator

Try it and see what CI thinks?

djc
djc previously approved these changes Dec 9, 2022
@StygianLightning

Copy link
Copy Markdown
Contributor Author

Huh, Mac doesn't like that for some reason. Gonna fix it tonight.

@StygianLightning

Copy link
Copy Markdown
Contributor Author

I fixed the three instances that failed on macOS and reduced the scope of the two #[allow] annotations from my original commit.

@Ralith Ralith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@Ralith
Ralith merged commit 389d7ce into quinn-rs:main Dec 10, 2022
@djc djc mentioned this pull request May 8, 2023
3 tasks
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.

3 participants