diff --git a/core/src/io.rs b/core/src/io.rs index 3ca0ed1eb..65f67162b 100644 --- a/core/src/io.rs +++ b/core/src/io.rs @@ -378,6 +378,14 @@ impl> IoHandlerExtension for MetaIoHandler> IoHandlerExtension for Option { + fn augment>(self, handler: &mut MetaIoHandler) { + if let Some(x) = self { + x.augment(handler) + } + } +} + /// Simplified `IoHandler` with no `Metadata` associated with each request. #[derive(Clone, Debug, Default)] pub struct IoHandler(MetaIoHandler);