package_buildpack()
contains an unwrap()
in non-test code
#710
Labels
package_buildpack()
contains an unwrap()
in non-test code
#710
#666 introduced an
.unwrap()
in non-#[cfg(test)]
code, here:libcnb.rs/libcnb-test/src/build.rs
Line 90 in 2698a71
We should never use
.unwrap()
apart from in tests.In particular,
package_buildpack()
already returns aResult
, so this failure mode should be converted to another error variant within it.The text was updated successfully, but these errors were encountered: