refactoring

This commit is contained in:
Simon Gardling
2022-04-26 10:02:13 -04:00
parent 69a316c9c8
commit 2ee56104ae
4 changed files with 62 additions and 64 deletions

View File

@@ -7,11 +7,11 @@ use parsing::suggestions::Hint;
use std::ops::BitXorAssign;
use uuid::Uuid;
pub struct Manager {
pub struct FunctionManager {
functions: Vec<(Uuid, FunctionEntry)>,
}
impl Default for Manager {
impl Default for FunctionManager {
fn default() -> Self {
Self {
functions: vec![(Uuid::new_v4(), DEFAULT_FUNCTION_ENTRY.clone())],
@@ -19,7 +19,7 @@ impl Default for Manager {
}
}
impl Manager {
impl FunctionManager {
pub fn display_entries(&mut self, ui: &mut egui::Ui) {
// ui.label("Functions:");
let can_remove = self.functions.len() > 1;