BlogDocs

Define `Warning` type and start annotating possible parse errors(#131)

Merged
Comparing
error-handling
(
d9a132c
) with
main
(
f3252fc
)
-19%
IMPROVEMENTS
0
REGRESSIONS
1
UNTOUCHED
3
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

element attributes
benches/element_attributes.rs::benches::perf::element attributes
-2%
19.1 µs
19.6 µs
inline macro
benches/inline_macro.rs::benches::inline_macro::inline macro
-4%
16.7 µs
17.4 µs
2 blocks + title
benches/simple_parse.rs::benches::two_blocks_and_title::2 blocks + title
-4%
13.9 µs
14.5 µs
section with 2 blocksRegression
benches/section_with_two_blocks.rs::benches::section_with_two_blocks::section with 2 blocks
-19%
15.6 µs
19.3 µs

Commits

Click on a commit to change the comparison range
base
main
f3252fc
0%
Refine error handling in ElementAttribute parsing
7030aca
2 months ago
by scouten
0%
Merge branch 'main' into error-handling
228479b
2 months ago
by scouten
0%
Fix elided-lifetimes warning in Rust nightly
4da322b
2 months ago
by scouten
-1%
Handle errors in `MacroBlock::parse`
cbfa11d
2 months ago
by scouten
0%
Resolve lifetime warning in nightly builds
17e9532
2 months ago
by scouten
+1%
Add warning for missing comma after quoted attribute value
e2f9992
2 months ago
by scouten
0%
Test coverage: Ensure Attrlist::parse propagates warning from ElementAttribute::parse
08d94a6
2 months ago
by scouten
0%
Add coverage for warnings.rs
2d00be3
2 months ago
by scouten
0%
Test coverage for `unwrap_if_no_warnings`
85920d9
2 months ago
by scouten
+1%
Add warnings for `MacroBlock::parse`
65556f5
2 months ago
by scouten
-2%
`Attrlist::parse` never returned `None`, so it doesn't need to return `Option`
439cfab
2 months ago
by scouten
-1%
Add warnings from `Block::parse`
fbb65de
2 months ago
by scouten
+2%
Allow `parse_blocks_until` to return an empty vec and consider that successful
0fbd431
2 months ago
by scouten
0%
Block::parse should propagate warnings from MacroBlocK::parse, but only if a successful match
0960655
2 months ago
by scouten
0%
SectionBlock::parse relays warnings up the chain
b5e66aa
2 months ago
by scouten
0%
Block::parse should relay errors from SectionBlock::parse
11ac795
2 months ago
by scouten
0%
Add coverage for parse_utils::parse_blocks_until
60ae699
2 months ago
by scouten
0%
Add missing elided lifetime
7e1ae1a
2 months ago
by scouten
-1%
Work around unreachable line
71f9436
2 months ago
by scouten
-16%
Add warnings support to Document::parse and Header::parse
b325f63
2 months ago
by scouten
0%
Clip
a274275
2 months ago
by scouten
0%
Add test coverage for warnings in both document header and document body
cdd36aa
2 months ago
by scouten
-2%
Document::parse no longer returns Option<Document> Parsing now always succeeds, but may also signal any number of warnings.
5b13ce0
2 months ago
by scouten
0%
Remove dead_code permission; no longer needed
d9a132c
2 months ago
by scouten
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.