Skip to content

Commit b308189

Browse files
committed
Minor inlining in WSGI callbacks
1 parent 5d49dfd commit b308189

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wsgi/callbacks.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ fn run_callback(callback: PyObject, scope: Scope) -> PyResult<(i32, Vec<(String,
2929
})
3030
}
3131

32+
#[inline(always)]
3233
pub(crate) fn call_rtb_http(cb: CallbackWrapper, scope: Scope) -> PyResult<(i32, Vec<(String, String)>, Body)> {
3334
run_callback(cb.callback, scope)
3435
}
3536

37+
#[inline(always)]
3638
pub(crate) fn call_rtt_http(
3739
cb: CallbackWrapper,
3840
scope: Scope,

0 commit comments

Comments
 (0)