Skip to content

Commit

Permalink
[ fmt ] Misc styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Dec 16, 2019
1 parent e7114cd commit f93480e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/check/rules/clause/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ fn bind_as_and_tele<T>(
mut tele: Tele,
f: impl FnOnce(TCS) -> TCMS<T>,
) -> TCMS<T> {
use std::mem::swap;
if tcs.lets.len() < as_binds.len() {
tcs.lets.reserve(as_binds.len() - tcs.lets.len());
}
for bind in as_binds {
tcs.lets.push(bind.into());
}
std::mem::swap(&mut tcs.gamma, &mut tele);
swap(&mut tcs.gamma, &mut tele);
let (thing, mut tcs) = f(tcs)?;
tcs.lets.clear();
std::mem::swap(&mut tcs.gamma, &mut tele);
swap(&mut tcs.gamma, &mut tele);
Ok((thing, tcs))
}

Expand Down
5 changes: 4 additions & 1 deletion src/check/rules/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
pub use self::{decls::*, term::simplify};
pub use self::{
decls::*,
term::{check, infer, simplify},
};

pub const ERROR_MSG: &str = "Please report this as a bug.";

Expand Down

0 comments on commit f93480e

Please sign in to comment.