The program works perfectly with all keys except one(in MacOS) that is the esc key. As soon as one presses the esc key,
thread '<unnamed>' panicked at /Users/purushottamsharma/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustyvibes-1.0.9/src/play_sound.rs:53:82: calledResult::unwrap()on anErrvalue: Os { code: 2, kind: NotFound, message: "No such file or directory" } note: run withRUST_BACKTRACE=1environment variable to display a backtrace thread '<unnamed>' panicked at /Users/purushottamsharma/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustyvibes-1.0.9/src/play_sound.rs:49:60: calledResult::unwrap()on anErrvalue: PoisonError { .. }
such errors pop up and no further key press produces any sound.
The program works perfectly with all keys except one(in MacOS) that is the esc key. As soon as one presses the esc key,
thread '<unnamed>' panicked at /Users/purushottamsharma/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustyvibes-1.0.9/src/play_sound.rs:53:82: called
Result::unwrap()on an
Errvalue: Os { code: 2, kind: NotFound, message: "No such file or directory" } note: run with
RUST_BACKTRACE=1environment variable to display a backtrace thread '<unnamed>' panicked at /Users/purushottamsharma/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustyvibes-1.0.9/src/play_sound.rs:49:60: called
Result::unwrap()on an
Errvalue: PoisonError { .. }
such errors pop up and no further key press produces any sound.