diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs index 938ecc94e..9d137026d 100644 --- a/const-oid/src/lib.rs +++ b/const-oid/src/lib.rs @@ -191,6 +191,12 @@ impl AsRef<[u8]> for ObjectIdentifier { } } +impl AsRef for ObjectIdentifier { + fn as_ref(&self) -> &ObjectIdentifierRef { + self.as_oid_ref() + } +} + impl Borrow for ObjectIdentifier { fn borrow(&self) -> &ObjectIdentifierRef { self.as_oid_ref()