diff --git a/src/main.rs b/src/main.rs index 5fa5e3d..7309df9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -335,7 +335,7 @@ fn handle_connection( } "mp3" | "wav" => reply_binary(stream, &relative_path, "audio", &ending, path), _ => fail(stream), - }; + } return; } @@ -544,7 +544,7 @@ fn handle_relative_connection( } else { pki_path.push(format!("{relative_path}/{entry}.{pki_extension}")); audio_path.push(format!("{relative_path}/{entry}.mp3")); - }; + } let Ok(file) = File::open(pki_path) else { return;