Skip to content

Commit

Permalink
Any allocator support comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Dec 31, 2020
1 parent ecd8f5a commit 00a0a58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ pub trait RetainMoreString: sealed::AllocMoreSealedString {
}
}

// Future work - support this for strings with all allocators once/if <https://github.com/rust-lang/rust/pull/79500> lands
impl RetainMoreString for String {
fn retain_all<F: FnMut(&mut str, char, &mut str) -> bool>(&mut self, mut f: F) {
let len = self.len();
Expand Down

0 comments on commit 00a0a58

Please sign in to comment.