mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
changes after review
This commit is contained in:
parent
9865096c24
commit
f742d50379
3 changed files with 28 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue