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

Apply clippy, fix clippy errors, and do refactoring #2

Merged
merged 7 commits into from
Mar 6, 2024
Merged

Conversation

kikuomax
Copy link
Member

@kikuomax kikuomax commented Mar 6, 2024

  • Apply clippy and fix resulting errors
  • Do refactoring
  • Add a clippy job to the build GitHub Actions workflow
  • Bump version to 0.0.4

kikuomax added 6 commits March 5, 2024 16:01
- Removes `tracing` field from `Aws` section of `Segment`. `tracing` is
  no longer listed in AWS documentation:
  https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html#api-segmentdocuments-aws
Fixes errors produced by `cargo clippy --all-features --lib --bins --tests --examples -- -D warnings`:
- Removes unused `lambda::init` and `lambda::taskRoot`
- Replaces `starts_with` + `slice[p..]` → `strip_prefix`
- Flips `Into<Duration> for Seconds` → `From<Seconds> for Duration`
- Derives `Default` for `SamplingDecision`
- Removes unnecessary `&` before str literals
- Removes unncessary `use xray_lite`
- Adds missing documentation comments

Fixes errors produced by `cargo +nightly clippy --all-features --benches -- -D warnings`:
- Removes closure calling functions without parameter
Introduces a new job `clippy` to `build` GitHub Actions workflow, which
runs `clippy` check.
Makes parsing of additional key-value pairs more idiomatic in
`FromStr for Header`.
@kikuomax kikuomax self-assigned this Mar 6, 2024
Bumps the version in the installation instruction to v0.0.4.
Copy link
Member Author

@kikuomax kikuomax left a comment

Choose a reason for hiding this comment

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

I have self-reviewed the changes.

@kikuomax kikuomax merged commit 821e78e into main Mar 6, 2024
8 checks passed
@kikuomax kikuomax deleted the clippy branch March 6, 2024 07:10
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.

1 participant