diff --git a/compiler-cli/src/new/tests.rs b/compiler-cli/src/new/tests.rs index b39dbe667..859068d2e 100644 --- a/compiler-cli/src/new/tests.rs +++ b/compiler-cli/src/new/tests.rs @@ -39,7 +39,7 @@ fn new() { #[test] fn new_with_default_template() { let tmp = tempfile::tempdir().unwrap(); - let path = Utf8PathBuf::from_path_buf(tmp.into_path()).expect("Non Utf8 Path"); + let path = Utf8PathBuf::from_path_buf(tmp.path().to_path_buf()).expect("Non Utf8 Path"); let creator = super::Creator::new( super::NewOptions { @@ -69,7 +69,7 @@ fn new_with_default_template() { #[test] fn new_with_javascript_template() { let tmp = tempfile::tempdir().unwrap(); - let path = Utf8PathBuf::from_path_buf(tmp.into_path()).expect("Non Utf8 Path"); + let path = Utf8PathBuf::from_path_buf(tmp.path().to_path_buf()).expect("Non Utf8 Path"); let creator = super::Creator::new( super::NewOptions {