Skip to content

Commit

Permalink
rune: Mark consume as #[inline(always)]
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Oct 28, 2024
1 parent eaae51e commit ce27ceb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/rune/src/runtime/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn take(value: &mut Value) -> Value {
replace(value, Value::empty())
}

#[inline(always)]
fn consume(value: &mut Value) {
*value = Value::empty();
}
Expand Down

0 comments on commit ce27ceb

Please sign in to comment.