Skip to content

Commit 4937071

Browse files
committed
fix: run cargo fmt
1 parent bc79866 commit 4937071

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

src/analyze/crate_.rs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,23 @@ impl<'tcx, 'ctx> Analyzer<'tcx, 'ctx> {
3939
let tt = ts.trees().next().expect("string literal");
4040

4141
let raw_command = match tt {
42-
TokenTree::Token(Token{ kind: TokenKind::Literal(lit), .. }, _)
43-
if lit.kind == LitKind::Str => Some(lit.symbol.to_string()),
42+
TokenTree::Token(
43+
Token {
44+
kind: TokenKind::Literal(lit),
45+
..
46+
},
47+
_,
48+
) if lit.kind == LitKind::Str => Some(lit.symbol.to_string()),
4449
_ => None,
45-
}.expect("invalid raw_command annotation");
50+
}
51+
.expect("invalid raw_command annotation");
4652

47-
self.ctx.system.borrow_mut().push_raw_command(
48-
chc::RawCommand {command: raw_command}
49-
);
53+
self.ctx
54+
.system
55+
.borrow_mut()
56+
.push_raw_command(chc::RawCommand {
57+
command: raw_command,
58+
});
5059
}
5160
}
5261

src/chc/smtlib2.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,19 +378,13 @@ pub struct RawCommand<'a> {
378378

379379
impl<'a> std::fmt::Display for RawCommand<'a> {
380380
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
381-
write!(
382-
f,
383-
"{}",
384-
self.inner.command,
385-
)
381+
write!(f, "{}", self.inner.command,)
386382
}
387383
}
388384

389385
impl<'a> RawCommand<'a> {
390386
pub fn new(inner: &'a chc::RawCommand) -> Self {
391-
Self {
392-
inner
393-
}
387+
Self { inner }
394388
}
395389
}
396390

0 commit comments

Comments
 (0)