Skip to content

Instantly share code, notes, and snippets.

@pftbest
Created January 11, 2018 18:01
Show Gist options
  • Select an option

  • Save pftbest/ce0fa145b0ec24bfd68842204e964aec to your computer and use it in GitHub Desktop.

Select an option

Save pftbest/ce0fa145b0ec24bfd68842204e964aec to your computer and use it in GitHub Desktop.
diff --git a/src/sysroot.rs b/src/sysroot.rs
index 6fba61e..b684154 100644
--- a/src/sysroot.rs
+++ b/src/sysroot.rs
@@ -70,8 +70,9 @@ version = "0.0.0"
}
for (_, stage) in blueprint.stages {
- let td = TempDir::new("xargo").chain_err(|| "couldn't create a temporary directory")?;
- let td = td.path();
+ let td = TempDir::new("xargo")
+ .chain_err(|| "couldn't create a temporary directory")?
+ .into_path();
let mut stoml = TOML.to_owned();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment