Skip to content

Commit

Permalink
Fixed formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharybonagura committed Oct 4, 2024
1 parent 66620de commit b55ccdc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aris/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ pub fn unify(mut c: HashSet<Constraint>) -> Option<Substitution> {
}
(Expr::Apply { func: sf, args: sa }, Expr::Apply { func: tf, args: ta }) if sa.len() == ta.len() => {
c.insert(Constraint::Equal(*sf, *tf));
c.extend(sa.into_iter().zip(ta.into_iter()).map(|(x, y)| Constraint::Equal(x, y)));
c.extend(sa.into_iter().zip(ta).map(|(x, y)| Constraint::Equal(x, y)));
unify(c)
}
(Expr::Assoc { op: so, exprs: se }, Expr::Assoc { op: to, exprs: te }) if so == to && se.len() == te.len() => {
Expand Down
2 changes: 1 addition & 1 deletion aris/src/proofs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ pub trait Proof: Sized {
}
fn contained_justifications(&self, include_premises: bool) -> HashSet<PjRef<Self>> {
let mut ret = self.lines().into_iter().filter_map(|x| x.fold(hlist![|r: Self::JustificationReference| Some(vec![r].into_iter().map(Coproduct::inject).collect()), |r: Self::SubproofReference| self.lookup_subproof(&r).map(|sub| sub.contained_justifications(include_premises)),])).fold(HashSet::new(), |mut x, y| {
x.extend(y.into_iter());
x.extend(y);
x
});
if include_premises {
Expand Down
2 changes: 1 addition & 1 deletion aris/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ pub type Rule = SharedChecks<Coprod!(PrepositionalInference, PredicateInference,
/// Conveniences for constructing rules of the appropriate type, primarily for testing.
/// The non-standard naming conventions here are because a module is being used to pretend to be an enum.
#[allow(non_snake_case)]
#[allow(non_upper_case_globals)]
pub mod RuleM {
#![allow(non_upper_case_globals)]
use super::*;
macro_rules! declare_rules {
($([$id:ident, $name:literal, $value:tt]),+) => {
Expand Down
1 change: 1 addition & 0 deletions bindings/js/src/proofs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ impl Proof {
}

#[wasm_bindgen]
#[allow(dead_code)]
pub struct Subproof(Sp);

#[wasm_bindgen]
Expand Down
1 change: 1 addition & 0 deletions bindings/js/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub fn rule_names() -> JsResult<Vec<JsValue>> {
}

#[wasm_bindgen]
#[allow(dead_code)]
pub struct Rule(aris::rules::Rule);

#[wasm_bindgen]
Expand Down

0 comments on commit b55ccdc

Please sign in to comment.