removed unsed config method

This commit is contained in:
Noor 2024-12-11 17:03:19 +05:30
parent e5ef2c1e97
commit 123842e470

@ -58,20 +58,6 @@ pub mod config {
Ok(serde_yml::from_str(&config_str)?) 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>> { pub fn load_data(mut self) -> Result<Self, Box<dyn std::error::Error>> {
self.filesystem.iter_mut().for_each(|x| { self.filesystem.iter_mut().for_each(|x| {
if let Some(FileContent::Path(path)) = &x.content { if let Some(FileContent::Path(path)) = &x.content {