some more refactoring

This commit is contained in:
Simon Gardling
2023-12-04 13:18:09 -05:00
parent 159bb1122b
commit 8902c986f8
7 changed files with 102 additions and 89 deletions

View File

@@ -23,7 +23,7 @@ impl Default for FunctionManager {
let mut vec: Functions = Vec::with_capacity(COLORS.len());
vec.push((
create_id(11414819524356497634), // Random number here to avoid call to crate::misc::random_u64()
FunctionEntry::EMPTY,
FunctionEntry::default(),
));
Self { functions: vec }
}
@@ -261,7 +261,7 @@ impl FunctionManager {
pub fn push_empty(&mut self) {
self.functions.push((
create_id(random_u64().expect("unable to generate random id")),
FunctionEntry::EMPTY,
FunctionEntry::default(),
));
}