default impl for obj manager

This commit is contained in:
Robin Müller 2022-05-15 14:24:18 +02:00
parent 53e75f2555
commit b6bea7de42
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -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 {