From 928650c4ebe36b90257709b913d0caf111111d6e Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 21 Aug 2019 14:09:27 +0200 Subject: [PATCH] src/config: use statement cleanup Signed-off-by: Wolfgang Bumiller --- src/config/datastore.rs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/config/datastore.rs b/src/config/datastore.rs index fac1847b6..449021ff3 100644 --- a/src/config/datastore.rs +++ b/src/config/datastore.rs @@ -1,18 +1,14 @@ -use failure::*; - -//use std::fs::{OpenOptions}; -use std::io::Read; use std::collections::HashMap; +use std::io::Read; -//use std::sync::Arc; -use proxmox::tools::{try_block, fs::file_set_contents}; - -use crate::api_schema::*; - -use crate::section_config::*; - +use failure::*; use lazy_static::lazy_static; +use proxmox::tools::{fs::file_set_contents, try_block}; + +use crate::api_schema::{ObjectSchema, StringSchema}; +use crate::section_config::{SectionConfig, SectionConfigData, SectionConfigPlugin}; + lazy_static!{ static ref CONFIG: SectionConfig = init(); }