Skip to content

Commit

Permalink
Defer remaining dead_code to #68
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer committed May 20, 2022
1 parent f4da109 commit 813b0f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modi/c13.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ struct DebugLinesHeader {
/// See LineFlags enumeration.
flags: u16,
/// Code size of this line contribution.
#[allow(dead_code)] // reason = "unused until TODO in LineIterator is resolved"
code_size: u32,
}

Expand Down Expand Up @@ -330,6 +331,7 @@ struct LineNumberEntry {
#[derive(Clone, Debug)]
struct LineMarkerEntry {
/// Delta offset to the start of this line contribution (debug lines subsection).
#[allow(dead_code)] // reason = "unused until TODO in LineIterator is resolved"
pub offset: u32,
/// The marker kind, hinting a debugger how to deal with code at this offset.
#[allow(dead_code)] // reason = "debugger instructions are not exposed"
Expand Down Expand Up @@ -438,7 +440,6 @@ impl<'t> TryFromCtx<'t, Endian> for ColumnNumberEntry {

#[derive(Clone, Debug, Default)]
struct DebugColumnsIterator<'a> {
block: DebugLinesBlockHeader,
buf: ParseBuffer<'a>,
}

Expand Down Expand Up @@ -528,8 +529,7 @@ impl<'a> DebugLinesBlock<'a> {

fn columns(&self) -> DebugColumnsIterator<'a> {
DebugColumnsIterator {
block: self.header,
buf: ParseBuffer::from(self.line_data),
buf: ParseBuffer::from(self.column_data),
}
}
}
Expand Down

0 comments on commit 813b0f4

Please sign in to comment.