FunctionManager: create new()
This commit is contained in:
parent
b59f214c67
commit
53d90b7328
@ -17,9 +17,7 @@ pub struct FunctionManager {
|
||||
|
||||
impl Default for FunctionManager {
|
||||
fn default() -> Self {
|
||||
let mut d = Self {
|
||||
functions: Vec::new()
|
||||
};
|
||||
let mut d = Self::new();
|
||||
d.push_empty();
|
||||
d
|
||||
}
|
||||
@ -46,6 +44,12 @@ fn button_area_button<'a>(text: impl Into<WidgetText>) -> Button<'a> {
|
||||
}
|
||||
|
||||
impl FunctionManager {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
functions: Vec::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_hash(&self) -> u64 {
|
||||
let mut hasher = DefaultHasher::new();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user