fix compiler warnings, add storage/config.rs

This commit is contained in:
Dietmar Maurer
2018-11-30 11:15:26 +01:00
parent 9131286246
commit bfb1d69abc
8 changed files with 51 additions and 13 deletions

View File

@ -1,7 +1,5 @@
use failure::*;
use std::fs::File;
use std::io::Read;
use std::collections::HashMap;
use std::collections::HashSet;
use std::collections::VecDeque;
@ -76,7 +74,7 @@ impl SectionConfig {
self.plugins.insert(plugin.type_name.clone(), plugin);
}
pub fn write(&self, filename: &str, config: &SectionConfigData) -> Result<String, Error> {
pub fn write(&self, _filename: &str, config: &SectionConfigData) -> Result<String, Error> {
let mut list = VecDeque::new();
@ -232,7 +230,7 @@ impl SectionConfig {
Ok(result)
}
pub fn default_format_section_header(type_name: &str, section_id: &str, data: &Value) -> String {
pub fn default_format_section_header(type_name: &str, section_id: &str, _data: &Value) -> String {
return format!("{}: {}\n", type_name, section_id);
}