briandorsey / wavrw

wavrw is a command line tool to read and write WAV files with a focus on visualizing the structure of files and parsing metadata.
Apache License 2.0
2 stars 1 forks source link

simplify metadata_chunks interface by returning unknown chunk instead of Err() #73

Closed briandorsey closed 5 months ago

briandorsey commented 5 months ago

Store parsing errors on unknown chunk for optional review/display. This removes the inner BinResult from the large return type: Result<Vec<BinResult<Box<dyn SizedChunk>>>

briandorsey commented 5 months ago

Never mind. An error parsing a known chunk is very different than an unknown chunk.