Skip to content

Commit

Permalink
Minor inlining in WSGI callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Nov 15, 2023
1 parent 5d49dfd commit b308189
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wsgi/callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ fn run_callback(callback: PyObject, scope: Scope) -> PyResult<(i32, Vec<(String,
})
}

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

#[inline(always)]
pub(crate) fn call_rtt_http(
cb: CallbackWrapper,
scope: Scope,
Expand Down

0 comments on commit b308189

Please sign in to comment.