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

dedent: simplify and avoid extra allocations #143

Merged
merged 3 commits into from Jul 11, 2018
Merged

Conversation

mgeisler
Copy link
Owner

This changes the internal logic to work on &str instead of String, thus saving some allocations.

Before we would copy the input data into a new Strings, we now simply
use a &str to hold the temporary prefix string.
@codecov-io
Copy link

codecov-io commented Jul 11, 2018

Codecov Report

Merging #143 into master will increase coverage by 0.34%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #143      +/-   ##
=========================================
+ Coverage   92.15%   92.5%   +0.34%     
=========================================
  Files           2       2              
  Lines         357     360       +3     
=========================================
+ Hits          329     333       +4     
+ Misses         28      27       -1
Impacted Files Coverage Δ
src/lib.rs 92.41% <100%> (+0.34%) ⬆️

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 64aa0b9...b6a5f03. Read the comment docs.

@mgeisler mgeisler merged commit 37d932c into master Jul 11, 2018
@mgeisler mgeisler deleted the simplify-dedent branch December 7, 2018 15:20
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

2 participants