Skip to content

Conversation

@Mingun
Copy link
Collaborator

@Mingun Mingun commented Sep 26, 2023

During work on various PRs I made a number of tiny improvements that helps with debugging. Them are not strictly related to any issue, so I put them together in this PR.

Also I noticed and fix one trivial mistake -- u8::is_ascii_whitespace is used to find the boundary of a name of end tag instead of correct is_whitespace. Standard function considered more symbols as whitespaces, than XML requires.

Mingun and others added 6 commits September 25, 2023 19:07
The standard method considers more characters as whitespaces, but XML has its own set
The following calls are unnecessary, because this is the default values:
  .trim_text(false)
  .check_comments(false)
  .check_end_names(true)
  .expand_empty_elements(false)
@Mingun Mingun requested a review from dralley September 26, 2023 19:36
@codecov-commenter
Copy link

Codecov Report

Merging #658 (7223c3f) into master (e1b2c46) will increase coverage by 0.02%.
The diff coverage is 89.42%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master     #658      +/-   ##
==========================================
+ Coverage   64.50%   64.53%   +0.02%     
==========================================
  Files          36       36              
  Lines       17286    17272      -14     
==========================================
- Hits        11151    11147       -4     
+ Misses       6135     6125      -10     
Flag Coverage Δ
unittests 64.53% <89.42%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/de/mod.rs 69.36% <100.00%> (-0.06%) ⬇️
src/reader/buffered_reader.rs 85.51% <ø> (ø)
src/reader/slice_reader.rs 100.00% <100.00%> (ø)
src/reader/state.rs 98.70% <100.00%> (ø)
src/reader/mod.rs 95.04% <91.66%> (ø)
benches/microbenches.rs 0.00% <0.00%> (ø)

@Mingun Mingun merged commit ede4fb9 into tafia:master Sep 27, 2023
@Mingun Mingun deleted the tiny-fixes branch September 27, 2023 04:16
Mingun added a commit to Mingun/quick-xml that referenced this pull request Sep 30, 2023
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.

3 participants