pub(crate) fn register_dispatch(dispatch: &Dispatch)