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 6997194 commit 0422708Copy full SHA for 0422708
src/block/block.rs
@@ -109,9 +109,8 @@ impl Block {
109
/// instruction does not fit entirely into this block's section.
110
///
111
/// This field is only valid if truncated is set.
112
- pub fn raw(&self) -> Option<&[u8]> {
113
- if self.truncated() { Some(&self.0.raw[..self.0.size as usize]) }
114
- else { None }
+ pub fn raw(&self) -> &[u8] {
+ &self.0.raw[..self.0.size as usize]
115
}
116
117
/// A collection of flags giving additional information about the
0 commit comments