-
Notifications
You must be signed in to change notification settings - Fork 107
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
dev: use from_reader
and to_writer_pretty
from serde_json, remove reading from memory to string
#562
dev: use from_reader
and to_writer_pretty
from serde_json, remove reading from memory to string
#562
Conversation
fd6c402
to
0a50f51
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #562 +/- ##
===========================================
+ Coverage 23.17% 72.87% +49.69%
===========================================
Files 9 45 +36
Lines 1247 4140 +2893
===========================================
+ Hits 289 3017 +2728
- Misses 958 1123 +165
☔ View full report in Codecov by Sentry. |
dd2b5c0
to
423cb6f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work so far, just some comments and nits on unwraps 🙂
f0a1c75
to
23ac17d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments 🙂
afdfac3
to
60668d2
Compare
need to rebase and fix clippy |
4994ad0
to
9b69e0a
Compare
Can be rebased now |
85eb416
to
632c038
Compare
08d7eec
to
aa7247f
Compare
<!--- Please provide a general summary of your changes in the title above --> <!-- Give an estimate of the time you spent on this PR in terms of work days. Did you spend 0.5 days on this PR or rather 2 days? --> Time spent on this PR: ## Pull request type <!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. --> Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior? <!-- Please describe the current behavior that you are modifying, or link to a relevant issue. --> Resolves #<Issue number> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - - - ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
Resolves: #561
Pull Request type
Please check the type of change your PR introduces:
What is the new behavior?
As mentioned in #561 , we were often reading first from a file to string, and then passing it to serde_json.
serde_json has the following methods:
Which can allow reading and writing directly from and to a Reader and a Writer respectively.
This PR also fixes some variables names, where it seems fit.
Does this introduce a breaking change?