RustAudio / rimd

Library for handling Midi and Standard Midi Files in Rust
MIT License
80 stars 17 forks source link

Convert from `try!()` macro to `?` operator #17

Closed akesling closed 3 years ago

akesling commented 3 years ago

See https://doc.rust-lang.org/std/macro.try.html for context. The try!() macro was replaced by the more succinct ? operator.

This represents a step toward matching modern Rust style and fixing issues enumerated in https://github.com/RustAudio/rimd/issues/16

akesling commented 3 years ago

Accidentally opened this against master fork. Closing in favor of https://github.com/RustAudio/rimd/pull/18.