diff options
| author | Estevan Castilho <tevo@riajuu.net> | 2026-08-22 23:22:31 +0000 |
|---|---|---|
| committer | Estevan Castilho <tevo@riajuu.net> | 2026-08-23 03:07:00 +0000 |
| commit | 9ef2323823c8fea8cfb53e9c011433daeb7ec66f (patch) | |
| tree | 795874cc726b6daa0dd95da632c36d90e56f9b82 /lib/protocols/Registry.ml | |
| parent | 339c9b0e30719e2e68310c90a1c9ef27f54c9d09 (diff) | |
| download | RNT-9ef2323823c8fea8cfb53e9c011433daeb7ec66f.tar.gz RNT-9ef2323823c8fea8cfb53e9c011433daeb7ec66f.zip | |
Make the interfaces open
Diffstat (limited to '')
| -rw-r--r-- | lib/protocols/Registry.ml | 2 | ||||
| -rw-r--r-- | lib/protocols/Registry.mli | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/protocols/Registry.ml b/lib/protocols/Registry.ml index 4e3a44e..4c47001 100644 --- a/lib/protocols/Registry.ml +++ b/lib/protocols/Registry.ml @@ -7,7 +7,7 @@ type Handle.protocol += Registry of implementation type t = implementation -let make impl = Registry impl +let make impl = Registry (impl :> implementation) let from handle = Handle.into handle (function Registry impl -> Some impl | _ -> None) diff --git a/lib/protocols/Registry.mli b/lib/protocols/Registry.mli index 855f8b8..175ebed 100644 --- a/lib/protocols/Registry.mli +++ b/lib/protocols/Registry.mli @@ -5,7 +5,7 @@ class type implementation = object method unregister : string -> (unit, Concepts.Condition.condition) result end -val make : implementation -> Handle.protocol +val make : #implementation -> Handle.protocol val from : Handle.t -> t Handle.interface option |
