Seperate between internal and external conversion

This commit is contained in:
Jaby
2024-05-21 19:30:54 +02:00
parent df36c2cd92
commit 49417295fc
5 changed files with 49 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ struct CommandLine {
fn parse_input(input: Option<PathBuf>) -> Result<OverlayDesc, Error> {
if let Some(input) = input {
let input = format_if_error!(open_input(Some(input)), "Opening input file failed with: {error_text}")?;
let input = format_if_error!(open_input(&Some(input)), "Opening input file failed with: {error_text}")?;
format_if_error!(mkoverlay::types::json_reader::read_config(input), "Parsing JSON file failed with: {error_text}")
}