diff --git a/src/file_io.rs b/src/file_io.rs index 0753a9c..b09322c 100644 --- a/src/file_io.rs +++ b/src/file_io.rs @@ -167,7 +167,7 @@ impl TryFrom for OnkostarEditor { type Error = FileError; fn try_from(value: InputFile) -> Result { - return match value { + match value { InputFile::Osc { filename, content, .. } => match OnkostarEditor::from_str(content.as_str()) { @@ -179,7 +179,7 @@ impl TryFrom for OnkostarEditor { | InputFile::Other { filename, .. } => { Err(FileError::Parsing(filename, "Keine OSC-Datei".to_string())) } - }; + } } }