mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-26 02:11:56 +00:00
remove dbg
This commit is contained in:
@@ -605,9 +605,9 @@ where
|
|||||||
{
|
{
|
||||||
type H = H;
|
type H = H;
|
||||||
fn handler_for<C: crate::Context>(self) -> Option<DynHandler<C, Inherited>> {
|
fn handler_for<C: crate::Context>(self) -> Option<DynHandler<C, Inherited>> {
|
||||||
if dbg!(TypeId::of::<C>()) == dbg!(TypeId::of::<RemoteContext>()) {
|
if TypeId::of::<C>() == TypeId::of::<RemoteContext>() {
|
||||||
DynHandler::new(self.handler.handler.no_cli())
|
DynHandler::new(self.handler.handler.no_cli())
|
||||||
} else if dbg!(TypeId::of::<C>()) == dbg!(TypeId::of::<Context>()) {
|
} else if TypeId::of::<C>() == TypeId::of::<Context>() {
|
||||||
DynHandler::new(CallRemoteHandler::<Context, RemoteContext, _>::new(
|
DynHandler::new(CallRemoteHandler::<Context, RemoteContext, _>::new(
|
||||||
self.handler.handler,
|
self.handler.handler,
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ where
|
|||||||
{
|
{
|
||||||
type H = H;
|
type H = H;
|
||||||
fn handler_for<C: crate::Context>(self) -> Option<DynHandler<C, Inherited>> {
|
fn handler_for<C: crate::Context>(self) -> Option<DynHandler<C, Inherited>> {
|
||||||
if dbg!(TypeId::of::<Context>()) == dbg!(TypeId::of::<C>()) {
|
if TypeId::of::<Context>() == TypeId::of::<C>() {
|
||||||
Some(unsafe {
|
Some(unsafe {
|
||||||
std::mem::transmute::<DynHandler<Context, Inherited>, DynHandler<C, Inherited>>(
|
std::mem::transmute::<DynHandler<Context, Inherited>, DynHandler<C, Inherited>>(
|
||||||
DynHandler(Arc::new(AnyHandler::new(self.handler))),
|
DynHandler(Arc::new(AnyHandler::new(self.handler))),
|
||||||
|
|||||||
Reference in New Issue
Block a user