Skip to content

Commit f641c7a

Browse files
committed
Formatting corrected
1 parent 950bde4 commit f641c7a

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

chalk-engine/src/logic.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,23 @@ impl<C: Context> Forest<C> {
238238
/// In terms of the NFTD paper, this corresponds to the *Program
239239
/// Clause Resolution* step being applied eagerly, as many times
240240
/// as possible.
241-
fn push_initial_strands(context: &impl ContextOps<C>, table_idx: TableIndex, table: &mut Table<C>) {
241+
fn push_initial_strands(
242+
context: &impl ContextOps<C>,
243+
table_idx: TableIndex,
244+
table: &mut Table<C>,
245+
) {
242246
// Instantiate the table goal with fresh inference variables.
243247
let table_goal = table.table_goal.clone();
244248
let (infer, subst, environment, goal) = context.instantiate_ucanonical_goal(&table_goal);
245-
Self::push_initial_strands_instantiated(context, table_idx, table, infer, subst, environment, goal);
249+
Self::push_initial_strands_instantiated(
250+
context,
251+
table_idx,
252+
table,
253+
infer,
254+
subst,
255+
environment,
256+
goal,
257+
);
246258
}
247259

248260
fn push_initial_strands_instantiated(

chalk-engine/src/tables.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ impl<C: Context> Tables<C> {
2929
}
3030
}
3131

32-
pub(super) fn insert(
33-
&mut self,
34-
table: Table<C>,
35-
) -> TableIndex {
32+
pub(super) fn insert(&mut self, table: Table<C>) -> TableIndex {
3633
let goal = table.table_goal.clone();
3734
let index = self.next_index();
3835
self.tables.push(table);

0 commit comments

Comments
 (0)