Skip to content

Commit 923c02f

Browse files
author
bors-servo
authored
Auto merge of #323 - Enet4:imp/no-unwrap-in-doctests, r=SimonSapin
Replace unwrap() in doctests with `?` Fixes #312. - All results yielding `ParseError` in the doctests should now be handled with the ? operator. - Some other specific results are ~unwrapped with `expect()`~ mapped to a placeholder string message, such as in URLs that are not _cannot-be-a-base_. Users are then expected to adjust this mapping depending on their use case. Once #299 is resolved, we'll be able to propagate these normally. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/323) <!-- Reviewable:end -->
2 parents 167fa4e + c58678a commit 923c02f

File tree

2 files changed

+307
-99
lines changed

2 files changed

+307
-99
lines changed

0 commit comments

Comments
 (0)