correction Entree.add_structure, j'avais oublié d'incrémenter size lorsqu'une Structure est ajoutée.

This commit is contained in:
primardj 2024-01-11 19:36:18 +00:00
parent f3491fb333
commit 2f6d4ea4e1

View file

@ -100,6 +100,7 @@ impl Entree {
pub fn add_structure(&mut self, structure: Structure) -> i8 { pub fn add_structure(&mut self, structure: Structure) -> i8 {
self.inputs.push(structure); self.inputs.push(structure);
self.size +=1;
0 0
} }