Skip to content
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

enable lints from workspace for puffin_http #238

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

gwen-lg
Copy link
Contributor

@gwen-lg gwen-lg commented Jan 21, 2025

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

Enable lints from workspace for puffin_http and fix the report from lints.

Related Issues

No related issue.

clippy warning: docs for function returning `Result` missing `# Errors` section
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
warning: `to_string()` called on a `&str`
help: consider using `.to_owned()`
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
note: requested on the command line with `-W clippy::str-to-string`
warning: unnecessary structure name repetition
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_self
note: requested on the command line with `-W clippy::use-self`
as is the function `run` of a thread,
passing by ref seems to have no interest.
clippy warning: non-binding `let` without a type annotation
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
TODO: allow user code to handle error ?
for write `PROTOCOLE_VERSION` in packet to be send to client(s).
- ignore unwrap_used as it's an example.
- ignore print_stderr as it's an example.
- add a `;` to the last statement for consistent formatting
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
note: requested on the command line with `-W clippy::semicolon-if-nothing-returned`
Copy link
Collaborator

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Thanks!

@gwen-lg
Copy link
Contributor Author

gwen-lg commented Jan 22, 2025

Thanks!

PR #237 would have to be integrated before. It fixes the CI task cargo vet.

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