Fixing warnings

This commit is contained in:
Tomasz Drwięga
2016-04-21 15:56:35 +02:00
parent 3c665f7640
commit c47d08e308
9 changed files with 21 additions and 12 deletions

View File

@@ -41,6 +41,12 @@ pub struct Hypervisor {
processes: RwLock<HashMap<BinaryId, Child>>,
}
impl Default for Hypervisor {
fn default() -> Self {
Hypervisor::new()
}
}
impl Hypervisor {
/// initializes the Hypervisor service with the open ipc socket for incoming clients
pub fn new() -> Hypervisor {
@@ -116,6 +122,7 @@ impl Hypervisor {
}
}
#[cfg(test)]
mod tests {
use super::*;
use std::sync::atomic::{AtomicBool,Ordering};