Fix setting option value to an empty string (#4176)
* Fix setting option value to an empty string * fix formatting
This commit is contained in:
1 parent
ad8c869ba2
commit
40ce4c269d
9 files changed
+21
-11
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user