Skip to content

Commit 4898596

Browse files
committed
Update links in CHANGELOG
1 parent 4fb88e0 commit 4898596

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ Bug fixes
88
---------
99

1010
* `Engine::compact_script` now properly compacts scripts with custom syntax that uses `$raw$` (thanks [`@yuvalrakavy`](https://github.com/yuvalrakavy) [`#1079`](https://github.com/rhaiscript/rhai/pull/1079)).
11-
* The string methods `split`, `split_rev` and their variants are now marked pure so they can be called on `const` strings ([`#1081`](https://github.com/rhaiscript/rhai/issues/1081)).
11+
* The string methods `split`, `split_rev` and their variants are now marked `pure` so they can be called on constant strings (thanks [`@theJC`](https://github.com/theJC) [`#1082`](https://github.com/rhaiscript/rhai/pull/1082)).
1212

1313
New features
1414
------------
1515

1616
* A new advanced callback, `Engine::on_missing_function`, is added (gated under the `internals` feature) to override default handling when a called function or method is not found (thanks [`@yuvalrakavy`](https://github.com/yuvalrakavy) [`#1067`](https://github.com/rhaiscript/rhai/pull/1067)).
17+
* A new method, `EvalContext::new_frame`, is added to created an isolated frame guard that automatically restores field values upon `Drop` (thanks [`@yuvalrakavy`](https://github.com/yuvalrakavy) for the idea [`#1085`](https://github.com/rhaiscript/rhai/pull/1085)).
1718

1819
Enhancements
1920
------------
2021

2122
* Procedural macros such as `#[export_module]` and `#[derive(CustomType)]` no longer require importing standard Rhai types (thanks [`@timokoesters`](https://github.com/timokoesters) [`#1071`](https://github.com/rhaiscript/rhai/pull/1071)).
22-
* `FnPtr::call_fn_as_method` and `FnPtr::call_as_method_within_context` are added (when not under `no_object`) to accept a `this` pointer for calling the function pointer as a method call.
23-
* `NativeCallContext::call_method` and `NativeCallContext::call_native_method` are added (when not under `no_object`) to accept a `this` pointer for method calls.
23+
* `FnPtr::call_fn_as_method` and `FnPtr::call_as_method_within_context` are added (when not under `no_object`) to accept a `this` pointer for calling the function pointer as a method call ([`#1080`](https://github.com/rhaiscript/rhai/pull/1080)).
24+
* `NativeCallContext::call_method` and `NativeCallContext::call_native_method` are added (when not under `no_object`) to accept a `this` pointer for method calls ([`#1080`](https://github.com/rhaiscript/rhai/pull/1080)).
2425

2526

2627
Version 1.24.0

src/eval/eval_context.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,10 @@ pub struct EvalContextFrameGuard<'f, 'a, 's, 'ps, 'g, 'c, 't> {
528528
impl Drop for EvalContextFrameGuard<'_, '_, '_, '_, '_, '_, '_> {
529529
#[inline(always)]
530530
fn drop(&mut self) {
531-
if let Some(caches_len) = self.caches_len.take() {
531+
if let Some(caches_len) = self.caches_len {
532532
self.context.caches.rewind_fn_resolution_caches(caches_len);
533533
}
534-
if let Some(scope_len) = self.scope_len.take() {
534+
if let Some(scope_len) = self.scope_len {
535535
self.context.scope.rewind(scope_len);
536536
}
537537
#[cfg(feature = "internals")]
@@ -548,11 +548,11 @@ impl Drop for EvalContextFrameGuard<'_, '_, '_, '_, '_, '_, '_> {
548548
*self.context.source_mut() = source;
549549
}
550550
#[cfg(feature = "internals")]
551-
if let Some(level) = self.level.take() {
551+
if let Some(level) = self.level {
552552
self.context.global.level = level;
553553
}
554554
#[cfg(feature = "internals")]
555-
if let Some(scope_level) = self.scope_level.take() {
555+
if let Some(scope_level) = self.scope_level {
556556
self.context.global.scope_level = scope_level;
557557
}
558558
if let Some(tag) = self.tag.take() {

0 commit comments

Comments
 (0)