-
Notifications
You must be signed in to change notification settings - Fork 853
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
Implement StringBuilder::append_option
#601
Conversation
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.
Thank you @mzeitlin11 -- this looks great!
please let me know if this should be added to the CHANGELOG
This will automatically get added to the changelog by our scripts. There is no need to do anything else
cc @tzzed
let mut builder = StringBuilder::new(20); | ||
builder.append_option(Some("hello")).unwrap(); | ||
builder.append_option(None::<&str>).unwrap(); | ||
builder.append_option(None::<String>).unwrap(); |
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.
❤️
Codecov Report
@@ Coverage Diff @@
## master #601 +/- ##
=======================================
Coverage 82.41% 82.41%
=======================================
Files 167 167
Lines 46232 46249 +17
=======================================
+ Hits 38100 38118 +18
+ Misses 8132 8131 -1
Continue to review full report at Codecov.
|
* Implement StringBuilder::append_option * Add another null append tesT Co-authored-by: Matthew Zeitlin <[email protected]>
Which issue does this PR close?
Closes #263.
Are there any user-facing changes?
Addition of a new method,
StringBuilder::append_option
(please let me know if this should be added to the CHANGELOG)