remove dbg

This commit is contained in:
Aiden McClelland
2024-05-04 03:36:04 -06:00
parent 7f53e38aee
commit f5566840bb
2 changed files with 3 additions and 3 deletions

View File

@@ -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,
)) ))

View File

@@ -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))),