Skip to content

Commit da46438

Browse files
committed
Run cargo fmt
1 parent b227078 commit da46438

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cobalt-ast/src/context.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ impl From<HeaderVersionError> for io::Error {
2424
}
2525
}
2626

27-
2827
#[derive(Clone, PartialEq, Eq, Debug)]
2928
pub struct Flags {
3029
pub word_size: u16,

cobalt-cli/src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,8 @@ pub fn driver(cli: Cli) -> anyhow::Result<()> {
17921792
out.set_extension("bc");
17931793
let (m, cg_time) = timeit(|| ctx.module.write_bitcode_to_memory());
17941794
*reporter.cg_time.get_or_insert(Duration::ZERO) += cg_time;
1795-
out.create_with_len(m.get_size() as _)?.write_all(m.as_slice())?;
1795+
out.create_with_len(m.get_size() as _)?
1796+
.write_all(m.as_slice())?;
17961797
Zero
17971798
}
17981799
OutputType::Assembly => {
@@ -1806,7 +1807,8 @@ pub fn driver(cli: Cli) -> anyhow::Result<()> {
18061807
.unwrap()
18071808
});
18081809
*reporter.cg_time.get_or_insert(Duration::ZERO) += cg_time;
1809-
out.create_with_len(m.get_size() as _)?.write_all(m.as_slice())?;
1810+
out.create_with_len(m.get_size() as _)?
1811+
.write_all(m.as_slice())?;
18101812
Zero
18111813
}
18121814
_ => {
@@ -1851,7 +1853,8 @@ pub fn driver(cli: Cli) -> anyhow::Result<()> {
18511853
}
18521854
OutputType::RawObject => {
18531855
out.set_extension("raw.o");
1854-
out.create_with_len(mb.get_size() as _)?.write_all(mb.as_slice())?;
1856+
out.create_with_len(mb.get_size() as _)?
1857+
.write_all(mb.as_slice())?;
18551858
Zero
18561859
}
18571860
OutputType::Object => {

0 commit comments

Comments
 (0)