We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c65c0f8 commit 46e54d9Copy full SHA for 46e54d9
der/src/asn1/any.rs
@@ -56,13 +56,6 @@ impl<'a> AnyRef<'a> {
56
pub fn value(self) -> &'a [u8] {
57
self.value.as_slice()
58
}
59
- /// Returns [`Tag`] and [`Length`] of self.
60
- pub fn header(&self) -> Header {
61
- Header {
62
- tag: self.tag,
63
- length: self.value.len(),
64
- }
65
66
67
/// Returns [`Tag`] and [`Length`] of self.
68
pub fn header(&self) -> Header {
@@ -94,7 +87,7 @@ impl<'a> AnyRef<'a> {
94
87
95
88
let mut decoder = SliceReader::new_with_encoding_rules(self.value(), encoding)?;
96
89
let result = T::decode_value(&mut decoder, self.header())?;
97
-
90
+
98
91
decoder.finish()?;
99
92
Ok(result)
100
93
0 commit comments