File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ members = ["kernel"]
38
38
``` rust
39
39
// build.rs
40
40
41
- use std :: path :: Path ;
41
+ use std :: path :: PathBuf ;
42
42
43
43
fn main () {
44
44
// set by cargo, build scripts should use this directory for output files
45
- let out_dir = Path :: new ( & std :: env :: var_os (" OUT_DIR" ). unwrap ());
45
+ let out_dir = PathBuf :: from ( std :: env :: var_os (" OUT_DIR" ). unwrap ());
46
46
// set by cargo's artifact dependency feature, see
47
47
// https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#artifact-dependencies
48
- let kernel = Path :: new ( & std :: env :: var_os (" CARGO_BIN_FILE_KERNEL_kernel" ). unwrap ());
48
+ let kernel = PathBuf :: from ( std :: env :: var_os (" CARGO_BIN_FILE_KERNEL_kernel" ). unwrap ());
49
49
50
50
// create an UEFI disk image (optional)
51
51
let uefi_path = out_dir . join (" uefi.img" );
You can’t perform that action at this time.
0 commit comments