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.
define_span
useCRCode
only in debug mode (inParseSpan
). So code like this requires to specifyCRCode
to hint the compiler about the type in release mode:Otherwise compilation will fail using
cargo build --release
.