Skip to content

Commit 20c3407

Browse files
committed
Fix fmt and check
1 parent 6ed1e0d commit 20c3407

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/util/dwarf.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,14 +1801,12 @@ pub fn subroutine_def_string(
18011801
if !t.blocks_and_inlines.is_empty() {
18021802
for node in &t.blocks_and_inlines {
18031803
let node_str = match node {
1804-
SubroutineNode::Block(block) => {
1805-
subroutine_block_string(info, typedefs, block)?
1806-
}
1804+
SubroutineNode::Block(block) => subroutine_block_string(info, typedefs, block)?,
18071805
SubroutineNode::Inline(inline) => {
18081806
subroutine_def_string(info, typedefs, inline, is_erased)?
18091807
}
18101808
};
1811-
writeln!(out, "")?;
1809+
writeln!(out)?;
18121810
out.push_str(&indent_all_by(4, node_str));
18131811
}
18141812
}
@@ -1873,7 +1871,7 @@ fn subroutine_block_string(
18731871
let node_str = match node {
18741872
SubroutineNode::Block(block) => subroutine_block_string(info, typedefs, block)?,
18751873
SubroutineNode::Inline(inline) => {
1876-
writeln!(out, "")?;
1874+
writeln!(out)?;
18771875
subroutine_def_string(info, typedefs, inline, false)?
18781876
}
18791877
};

0 commit comments

Comments
 (0)