fmt
This commit is contained in:
@ -94,7 +94,6 @@ common_label!(
|
||||
.intersection(&acc)
|
||||
);
|
||||
|
||||
|
||||
// Nodes -----------------------------------------------------------------------
|
||||
|
||||
/// Helper structure that specifies what information to display for nodes.
|
||||
|
||||
@ -83,7 +83,7 @@ pub trait ExtensionsSystem: BasicSystem {
|
||||
#[allow(clippy::type_complexity)]
|
||||
fn run_separated_limit(
|
||||
&self,
|
||||
limit: usize
|
||||
limit: usize,
|
||||
) -> Result<Vec<(Self::Set, Self::Set, Self::Set)>, String>;
|
||||
|
||||
fn traces(self, n: usize) -> Result<Vec<Trace<Self::Label, Self>>, String>;
|
||||
@ -177,7 +177,9 @@ impl<T: BasicSystem> ExtensionsSystem for T {
|
||||
}
|
||||
let mut n = 1;
|
||||
let mut current = current.unwrap().1;
|
||||
while let Some((_, next)) = current.one_transition()? && n < limit {
|
||||
while let Some((_, next)) = current.one_transition()?
|
||||
&& n < limit
|
||||
{
|
||||
current = next;
|
||||
n += 1;
|
||||
}
|
||||
@ -208,7 +210,7 @@ impl<T: BasicSystem> ExtensionsSystem for T {
|
||||
/// see smartOneRunECT, smartRunECT
|
||||
fn run_separated_limit(
|
||||
&self,
|
||||
limit: usize
|
||||
limit: usize,
|
||||
) -> Result<Vec<(Self::Set, Self::Set, Self::Set)>, String> {
|
||||
let mut limit = limit;
|
||||
let mut res = vec![];
|
||||
@ -220,7 +222,9 @@ impl<T: BasicSystem> ExtensionsSystem for T {
|
||||
let (available_entities, context, t) = current.0.get_context();
|
||||
res.push((available_entities.clone(), context.clone(), t.clone()));
|
||||
let mut current = current.1;
|
||||
while let Some((label, next)) = current.one_transition()? && limit > 1 {
|
||||
while let Some((label, next)) = current.one_transition()?
|
||||
&& limit > 1
|
||||
{
|
||||
limit -= 1;
|
||||
current = next;
|
||||
let (available_entities, context, t) = label.get_context();
|
||||
|
||||
Reference in New Issue
Block a user