thscharler / spreadsheet-ods

Apache License 2.0
29 stars 6 forks source link

Fix compilation in release mode #44

Closed Shatur closed 12 months ago

Shatur commented 1 year ago

define_span use CRCode only in debug mode (in ParseSpan). So code like this requires to specify CRCode to hint the compiler about the type in release mode:

    let span = Track::new_span::<CRCode, _>(&trk, buf);

Otherwise compilation will fail using cargo build --release.