Fix setting option value to an empty string (#4176)

* Fix setting option value to an empty string

* fix formatting
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-05-24 12:44:54 +01:00
1 parent ad8c869ba2
commit 40ce4c269d
9 files changed
+21 -11

No files matched your search

+5 -1
View File
@@ -435,7 +435,11 @@ impl<A, M, F: HotFunction<A, M>> HotFn<A, M, F> {
/// # Safety
///
/// The [`HotFnPtr`] must be to a function whose arguments layouts haven't changed.
pub unsafe fn try_call_with_ptr(&mut self, ptr: HotFnPtr, args: A) -> Result<F::Return, HotFnPanic> {
pub unsafe fn try_call_with_ptr(
&mut self,
ptr: HotFnPtr,
args: A,
) -> Result<F::Return, HotFnPanic> {
if !cfg!(debug_assertions) {
return Ok(self.inner.call_it(args));
}