-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid double allocation when passing strings via
IntoParam
(#1713)
* Use an iterator instead of double allocation for strings * Add a missing trailing new line * Use `T::default` instead of `Default::default` for clarity * Rename `from_iter` to `string_from_iter` for clarity * Run `cargo fmt` * Make string_from_iter from memory safe * Encoder is fused because Chain is fused * Remove unsafe from string_from_iter as it is memory-safe * Incorporate ryancerium and rylev's suggestions * Correct documentation error
- Loading branch information
1 parent
9deec0e
commit e518d03
Showing
3 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters