Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tirix committed Oct 29, 2023
1 parent 278cf1d commit 436c35c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/sts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,12 @@ impl StsDefinition {
pub fn check(&self) {
let stmt_parse = self.database.stmt_parse_result();
for sref in self.database.statements() {
match sref.statement_type() {
StatementType::Axiom => {
if let Some(formula) = stmt_parse.get_formula(&sref) {
if let Err(error) = self.format(formula.get_typecode(), formula) {
eprintln!("{}", error);
}
if sref.statement_type() == StatementType::Axiom {
if let Some(formula) = stmt_parse.get_formula(&sref) {
if let Err(error) = self.format(formula.get_typecode(), formula) {
eprintln!("{}", error);
}
}
_ => {}
}
}
}
Expand Down

0 comments on commit 436c35c

Please sign in to comment.