Skip to content

Commit

Permalink
forget
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 7, 2025
1 parent bc2e488 commit 763fb12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion turbopack/crates/turbo-rcstr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ impl RcStr {

match Arc::try_unwrap(arc) {
Ok(v) => v,
Err(arc) => arc.to_string(),
Err(arc) => {
let s = arc.to_string();
forget(arc);
s
}
}
}
INLINE_TAG => self.as_str().to_string(),
Expand Down

0 comments on commit 763fb12

Please sign in to comment.