mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
don't touch the refcount in putLine
This commit is contained in:
parent
84b5f0c91e
commit
03c21add77
1 changed files with 3 additions and 0 deletions
|
@ -136,5 +136,8 @@ pub fn roc_fx_putLine(line: RocStr) -> () {
|
|||
let string = unsafe { std::str::from_utf8_unchecked(bytes) };
|
||||
println!("{}", string);
|
||||
|
||||
// don't mess with the refcount!
|
||||
core::mem::forget(line);
|
||||
|
||||
()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue