From 518620865c4457213f6ee8282042279c60cb41f2 Mon Sep 17 00:00:00 2001 From: Gillett Hernandez Date: Tue, 9 Jul 2024 10:41:43 -0700 Subject: [PATCH] update nighly version and remove stabilized features --- src/bin/main.rs | 3 +-- src/lib.rs | 2 +- src/parsing/mod.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/main.rs b/src/bin/main.rs index bf1dea7..12b74af 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -1,4 +1,3 @@ -#![feature(fs_try_exists)] extern crate rust_pathtracer as root; use root::parsing::config::*; @@ -161,7 +160,7 @@ fn main() { let time = Instant::now(); println!("constructing renderer"); - if !matches!(fs::try_exists("output"), Ok(true)) { + if !matches!(fs::exists("output"), Ok(true)) { fs::create_dir("output") .expect("failed to create output directory. please create it manually"); } diff --git a/src/lib.rs b/src/lib.rs index 43e7efa..ea63516 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(fs_try_exists, portable_simd)] +#![feature(portable_simd)] #[macro_use] extern crate smallvec; diff --git a/src/parsing/mod.rs b/src/parsing/mod.rs index 2ae12e3..2db0bc6 100644 --- a/src/parsing/mod.rs +++ b/src/parsing/mod.rs @@ -221,7 +221,7 @@ pub fn construct_world>( ); let mut local_material_map = HashMap::new(); assert!( - matches!(std::fs::try_exists(mesh_data.filename.as_str()), Ok(true)), + matches!(std::fs::exists(mesh_data.filename.as_str()), Ok(true)), "could not find obj file or mtl file {}", mesh_data.filename.as_str() );