fix
This commit is contained in:
@ -1274,7 +1274,7 @@ fn for_8() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn nodes() {
|
fn nodes() {
|
||||||
use std::rc::Rc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use environment::Environment;
|
use environment::Environment;
|
||||||
use label::Label;
|
use label::Label;
|
||||||
@ -1321,10 +1321,10 @@ fn nodes() {
|
|||||||
let mut graph = petgraph::Graph::new();
|
let mut graph = petgraph::Graph::new();
|
||||||
let node_1 = graph.add_node(System::default());
|
let node_1 = graph.add_node(System::default());
|
||||||
let node_2 = graph.add_node(System::from(
|
let node_2 = graph.add_node(System::from(
|
||||||
Rc::new(Environment::default()),
|
Arc::new(Environment::default()),
|
||||||
Set::from([2]),
|
Set::from([2]),
|
||||||
Process::Nill,
|
Process::Nill,
|
||||||
Rc::new(vec![]),
|
Arc::new(vec![]),
|
||||||
));
|
));
|
||||||
let edge = graph.add_edge(node_1, node_2, Label::default());
|
let edge = graph.add_edge(node_1, node_2, Label::default());
|
||||||
|
|
||||||
|
|||||||
@ -32,8 +32,9 @@ where
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize, Default)]
|
||||||
pub enum Process {
|
pub enum Process {
|
||||||
|
#[default]
|
||||||
Nill,
|
Nill,
|
||||||
RecursiveIdentifier {
|
RecursiveIdentifier {
|
||||||
identifier: IdType,
|
identifier: IdType,
|
||||||
@ -152,12 +153,6 @@ impl BasicProcess for Process {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Process {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self::Nill
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl PrintableWithTranslator for Process {
|
impl PrintableWithTranslator for Process {
|
||||||
fn print(
|
fn print(
|
||||||
&self,
|
&self,
|
||||||
@ -247,8 +242,9 @@ impl PrintableWithTranslator for Process {
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize, Default)]
|
||||||
pub enum PositiveProcess {
|
pub enum PositiveProcess {
|
||||||
|
#[default]
|
||||||
Nill,
|
Nill,
|
||||||
RecursiveIdentifier {
|
RecursiveIdentifier {
|
||||||
identifier: IdType,
|
identifier: IdType,
|
||||||
@ -365,12 +361,6 @@ impl BasicProcess for PositiveProcess {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for PositiveProcess {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self::Nill
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl PrintableWithTranslator for PositiveProcess {
|
impl PrintableWithTranslator for PositiveProcess {
|
||||||
fn print(
|
fn print(
|
||||||
&self,
|
&self,
|
||||||
|
|||||||
Reference in New Issue
Block a user