Skip to content

Commit 4f0493a

Browse files
tamirdb1llow
authored andcommitted
Fix unused method warnings
1 parent 682a616 commit 4f0493a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/write/unit.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,7 @@ pub struct DebugInfoOffsets {
13781378

13791379
impl DebugInfoOffsets {
13801380
#[cfg(test)]
1381+
#[cfg(feature = "read")]
13811382
pub(crate) fn unit_offsets(&self, unit: UnitId) -> &UnitOffsets {
13821383
debug_assert_eq!(self.base_id, unit.base_id);
13831384
&self.units[unit.index]
@@ -1408,6 +1409,7 @@ pub(crate) struct UnitOffsets {
14081409

14091410
impl UnitOffsets {
14101411
#[cfg(test)]
1412+
#[cfg(feature = "read")]
14111413
fn none() -> Self {
14121414
UnitOffsets {
14131415
base_id: BaseId::default(),

0 commit comments

Comments
 (0)