summaryrefslogtreecommitdiff
path: root/src/commands/io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/io.rs')
-rw-r--r--src/commands/io.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/io.rs b/src/commands/io.rs
index c9691c4..3e171f1 100644
--- a/src/commands/io.rs
+++ b/src/commands/io.rs
@@ -68,7 +68,6 @@ impl ExportList {
68} 68}
69 69
70/// # Errors 70/// # Errors
71/// # Panics
72pub fn export(config: &Cfg, list: Option<String>) -> MLE<()> { 71pub fn export(config: &Cfg, list: Option<String>) -> MLE<()> {
73 let progress = ProgressBar::new_spinner(); 72 let progress = ProgressBar::new_spinner();
74 progress.set_style( 73 progress.set_style(
@@ -103,7 +102,7 @@ pub fn export(config: &Cfg, list: Option<String>) -> MLE<()> {
103 .join("mlexport.toml") 102 .join("mlexport.toml")
104 .into_os_string() 103 .into_os_string()
105 .into_string() 104 .into_string()
106 .unwrap(); 105 .map_err(|_| MLErr::new(EType::IoError, "No String"))?;
107 106
108 progress.set_message("Create file"); 107 progress.set_message("Create file");
109 let mut file = File::create(&filestr)?; 108 let mut file = File::create(&filestr)?;