I am pretty new to Rust. As an exercise I wrote a small binding for using the MusicBrainz libdiscid library in Rust. libdiscid is a C library to read the table of contents (TOC) from an audio CD and calculate an ID for it, which can be used to lookup metadata for this audio CD on MusicBrainz or FreeDB.
The code is available at https://github.com/phw/rust-discid
Since this is my very first public Rust code I would like to get some feedback on anything I might have done wrong or could do better. I tried to make this code be a good Rust citizen and to follow what I perceived as best practices, but I likely missed things. Please be ruthless with the code
Thanks a lot!