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

fix: lint issues in 1.52.0 #543

Merged
merged 4 commits into from May 9, 2021

Conversation

TommyCpp
Copy link
Contributor

@TommyCpp TommyCpp commented May 8, 2021

  • Also bumped the MSRV according to the README

);
}

for entry in dict.into_iter().flatten() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe rewrite this to collect() while you're at it? Potentially more efficient to allocate the correct size immediately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good to me. But I thought the compiler could allocate the correct size with for loop also?

@codecov
Copy link

codecov bot commented May 8, 2021

Codecov Report

Merging #543 (2bcabf3) into main (92a0d85) will not change coverage.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #543   +/-   ##
=====================================
  Coverage   52.2%   52.2%           
=====================================
  Files         96      96           
  Lines       8506    8506           
=====================================
  Hits        4447    4447           
  Misses      4059    4059           
Impacted Files Coverage Δ
opentelemetry-datadog/src/lib.rs 92.4% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92a0d85...2bcabf3. Read the comment docs.

@TommyCpp TommyCpp marked this pull request as ready for review May 8, 2021 20:42
@TommyCpp TommyCpp requested a review from a team as a code owner May 8, 2021 20:42
let _ = dict
.into_iter()
.flatten()
.map(|entry| {
Copy link
Contributor

Choose a reason for hiding this comment

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

I meant you could collect into map directly by yielding (entry.path(), std::fs::read_to_string()) items.

@jtescher jtescher merged commit f74705c into open-telemetry:main May 9, 2021
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.

None yet

3 participants