Make compile

This commit is contained in:
Gregor Reitzenstein 2020-09-15 15:34:36 +02:00
parent e1c5a009ad
commit 940a5d4fe0

View File

@ -99,25 +99,15 @@ pub struct Machine {
} }
impl Machine { impl Machine {
pub fn new(name: String, location: String, perm: String) -> Machine { pub fn new(name: String, perm: String) -> Machine {
Machine { Machine {
name: name, name: name,
location: location,
status: Status::Free,
perm: perm, 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, db: lmdb::Database,
} }