This commit is contained in:
Aiden McClelland
2024-05-04 03:07:11 -06:00
parent 0603928164
commit 00d3ab7e70
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 TypeId::of::<C>() == TypeId::of::<RemoteContext>() { if dbg!(TypeId::of::<C>()) == dbg!(TypeId::of::<RemoteContext>()) {
DynHandler::new(self.handler.handler.no_cli()) DynHandler::new(self.handler.handler.no_cli())
} else if TypeId::of::<C>() == TypeId::of::<Context>() { } else if dbg!(TypeId::of::<C>()) == dbg!(TypeId::of::<Context>()) {
DynHandler::new(CallRemoteHandler::<Context, RemoteContext, _>::new( DynHandler::new(CallRemoteHandler::<Context, RemoteContext, _>::new(
self.handler.handler, self.handler.handler,
)) ))

View File

@@ -280,7 +280,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 TypeId::of::<Context>() == TypeId::of::<C>() { if dbg!(TypeId::of::<Context>()) == dbg!(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))),