diff options
author | fxqnlr <[email protected]> | 2024-09-04 12:03:13 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-04 12:03:13 +0200 |
commit | 29635b9e3833296b2c908914104ba7165d22d3d5 (patch) | |
tree | f89e2807e664327fa26191d6f017512a87ba38e7 /src/commands/io.rs | |
parent | 6a91d0a864f9edd9d9fe50ca89ccbce4fc98e043 (diff) | |
download | modlist-29635b9e3833296b2c908914104ba7165d22d3d5.tar modlist-29635b9e3833296b2c908914104ba7165d22d3d5.tar.gz modlist-29635b9e3833296b2c908914104ba7165d22d3d5.zip |
remove `# Panics` and fix clippy
Diffstat (limited to 'src/commands/io.rs')
-rw-r--r-- | src/commands/io.rs | 3 |
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 | ||
72 | pub fn export(config: &Cfg, list: Option<String>) -> MLE<()> { | 71 | pub 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)?; |