removed unsed config method
This commit is contained in:
parent
e5ef2c1e97
commit
123842e470
14
src/lib.rs
14
src/lib.rs
@ -58,20 +58,6 @@ pub mod config {
|
||||
Ok(serde_yml::from_str(&config_str)?)
|
||||
}
|
||||
|
||||
pub fn _print_sample() {
|
||||
println!(
|
||||
"{}",
|
||||
serde_yml::to_string(&Config {
|
||||
filesystem: vec![FileEntry {
|
||||
path: "/etc/hostname".to_string(),
|
||||
content: Some(FileContent::Data("foo".to_string())),
|
||||
}],
|
||||
..Default::default()
|
||||
})
|
||||
.unwrap()
|
||||
);
|
||||
}
|
||||
|
||||
pub fn load_data(mut self) -> Result<Self, Box<dyn std::error::Error>> {
|
||||
self.filesystem.iter_mut().for_each(|x| {
|
||||
if let Some(FileContent::Path(path)) = &x.content {
|
||||
|
Loading…
Reference in New Issue
Block a user