From 940a5d4fe0f4b784397d6f1f90d23eb26166e67b Mon Sep 17 00:00:00 2001 From: Gregor Reitzenstein Date: Tue, 15 Sep 2020 15:34:36 +0200 Subject: [PATCH] Make compile --- src/machine.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/machine.rs b/src/machine.rs index 2d8dae1..5ca6dc1 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -99,25 +99,15 @@ pub struct Machine { } impl Machine { - pub fn new(name: String, location: String, perm: String) -> Machine { + pub fn new(name: String, perm: String) -> Machine { Machine { name: name, - location: location, - status: Status::Free, perm: perm, } } - - pub fn set_blocked(&mut self, blocked: bool) { - if blocked { - self.status = Status::Blocked; - } else { - self.status = Status::Free; - } - } } -struct MachineDB { +pub struct MachineDB { db: lmdb::Database, }