changes after review

This commit is contained in:
Folkert 2023-12-11 00:12:31 +01:00
parent 9865096c24
commit f742d50379
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 28 additions and 2 deletions

View file

@ -925,7 +925,7 @@ impl BigString {
let desired_cap = self.len() + n;
let desired_alloc = align + desired_cap;
if self.is_unique() {
if self.is_unique() && !self.is_seamless_slice() {
if self.capacity() >= desired_cap {
return;
}