Skip to content

Commit

Permalink
read: implement Default for DwarfSections and DwarfPackageSections (#742
Browse files Browse the repository at this point in the history
)
  • Loading branch information
philipc authored Aug 9, 2024
1 parent 5a2b2e6 commit dd3c98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/read/dwarf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use crate::read::{
/// # unreachable!()
/// # }
/// ```
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct DwarfSections<T> {
/// The `.debug_abbrev` section.
pub debug_abbrev: DebugAbbrev<T>,
Expand Down Expand Up @@ -771,7 +771,7 @@ impl<R: Clone> Dwarf<R> {
/// # unreachable!()
/// # }
/// ```
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct DwarfPackageSections<T> {
/// The `.debug_cu_index` section.
pub cu_index: DebugCuIndex<T>,
Expand Down

0 comments on commit dd3c98c

Please sign in to comment.