Fix clippy error

This commit is contained in:
Jean-François Roche 2023-02-02 00:21:20 +01:00
parent add2910abf
commit 17576e2ca2
No known key found for this signature in database
GPG key ID: D1D09DE169EA19A0

View file

@ -69,9 +69,9 @@ fn create_gcroot(gcroot_path: &str, store_path: &StorePath) -> Result<(), Box<dy
fn get_store_path(nix_build_result: process::Output) -> Result<StorePath, Box<dyn Error>> {
if nix_build_result.status.success() {
return String::from_utf8(nix_build_result.stdout)
String::from_utf8(nix_build_result.stdout)
.map_err(Box::from)
.map(StorePath::from);
.map(StorePath::from)
} else {
String::from_utf8(nix_build_result.stderr).map_or_else(boxed_error(), boxed_error())
}