@@ -59,7 +59,7 @@ impl Asn1Type {
5959 /// Get a `der::Decoder` object for a particular ASN.1 type
6060 pub fn decoder ( self ) -> TokenStream {
6161 let type_path = self . type_path ( ) ;
62- quote ! ( #type_path:: decode( reader) ?)
62+ quote ! ( < #type_path> :: decode( reader) ?)
6363 }
6464
6565 /// Get a `der::Decoder` optional object for a particular ASN.1 type
@@ -71,7 +71,7 @@ impl Asn1Type {
7171 /// Get a `der::DecodeValue` member object for a particular ASN.1 type
7272 pub fn value_decoder ( self ) -> TokenStream {
7373 let type_path = self . type_path ( ) ;
74- quote ! ( #type_path:: decode_value( reader, header) ?)
74+ quote ! ( < #type_path> :: decode_value( reader, header) ?)
7575 }
7676
7777 /// Get a `der::DecodeValue` member object for a particular ASN.1 type
@@ -83,7 +83,7 @@ impl Asn1Type {
8383 /// Get a `der::Encoder` object for a particular ASN.1 type
8484 pub fn encoder ( self , binding : & TokenStream ) -> TokenStream {
8585 let type_path = self . type_path ( ) ;
86- quote ! ( #type_path:: try_from( #binding) ?)
86+ quote ! ( < #type_path> :: try_from( #binding) ?)
8787 }
8888
8989 /// Get the Rust type path for a particular ASN.1 type.
@@ -93,8 +93,7 @@ impl Asn1Type {
9393 Asn1Type :: BitString => quote ! ( :: der:: asn1:: BitStringRef ) ,
9494 Asn1Type :: Ia5String => quote ! ( :: der:: asn1:: Ia5StringRef ) ,
9595 Asn1Type :: GeneralizedTime => quote ! ( :: der:: asn1:: GeneralizedTime ) ,
96- // TODO(tarcieri): natively support `OctetStringRef`, remove `OctetStringRefDeriveHack`
97- Asn1Type :: OctetString => quote ! ( :: der:: asn1:: OctetStringRefDeriveHack ) ,
96+ Asn1Type :: OctetString => quote ! ( & :: der:: asn1:: OctetStringRef ) ,
9897 Asn1Type :: PrintableString => quote ! ( :: der:: asn1:: PrintableStringRef ) ,
9998 Asn1Type :: TeletexString => quote ! ( :: der:: asn1:: TeletexStringRef ) ,
10099 Asn1Type :: VideotexString => quote ! ( :: der:: asn1:: VideotexStringRef ) ,
0 commit comments