mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-13 05:48:45 +00:00
WASIX Preparation
This commit extracts changes to core libraries made in the WASIX branch. It is not reasonable to extract the partial commit history, so this is just a batch commit. The history will make a bit more sense again if we decide to merge the WASIX branch with full commit history.
This commit is contained in:
@@ -109,7 +109,7 @@ pub struct RemoveTestsOnDrop {}
|
||||
impl Drop for RemoveTestsOnDrop {
|
||||
fn drop(&mut self) {
|
||||
let manifest_dir = env!("CARGO_MANIFEST_DIR");
|
||||
for entry in std::fs::read_dir(&manifest_dir).unwrap() {
|
||||
for entry in std::fs::read_dir(manifest_dir).unwrap() {
|
||||
let entry = entry.unwrap();
|
||||
let path = entry.path();
|
||||
let extension = path.extension().and_then(|s| s.to_str());
|
||||
@@ -119,7 +119,7 @@ impl Drop for RemoveTestsOnDrop {
|
||||
}
|
||||
}
|
||||
if let Some(parent) = std::path::Path::new(&manifest_dir).parent() {
|
||||
for entry in std::fs::read_dir(&parent).unwrap() {
|
||||
for entry in std::fs::read_dir(parent).unwrap() {
|
||||
let entry = entry.unwrap();
|
||||
let path = entry.path();
|
||||
let extension = path.extension().and_then(|s| s.to_str());
|
||||
|
||||
Reference in New Issue
Block a user