default impl for obj manager
This commit is contained in:
parent
53e75f2555
commit
b6bea7de42
@ -4,7 +4,7 @@ use std::error::Error;
|
||||
// use thiserror::Error;
|
||||
|
||||
pub struct Event {
|
||||
event_id: u32,
|
||||
pub event_id: u32,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Hash, Copy, Clone)]
|
||||
@ -25,6 +25,12 @@ pub struct ObjectManager {
|
||||
obj_map: HashMap<ObjectId, Box<dyn ManagedSystemObject>>,
|
||||
}
|
||||
|
||||
impl Default for ObjectManager {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl ObjectManager {
|
||||
pub fn new() -> ObjectManager {
|
||||
ObjectManager {
|
||||
|
Loading…
Reference in New Issue
Block a user