diff --git a/reverie-process/Cargo.toml b/reverie-process/Cargo.toml index 14e551c..f65d43e 100644 --- a/reverie-process/Cargo.toml +++ b/reverie-process/Cargo.toml @@ -21,7 +21,6 @@ thiserror = "1.0.49" tokio = { version = "1.37.0", features = ["full", "test-util", "tracing"] } [dev-dependencies] -const-cstr = "0.3.0" num_cpus = "1.16" raw-cpuid = "10.6.0" tempfile = "3.8" diff --git a/reverie-process/src/fd.rs b/reverie-process/src/fd.rs index b8ea8c6..f77b106 100644 --- a/reverie-process/src/fd.rs +++ b/reverie-process/src/fd.rs @@ -514,8 +514,6 @@ mod tests { use std::ffi::CString; use std::os::unix::ffi::OsStrExt; - use const_cstr::const_cstr; - use super::*; #[test] @@ -537,24 +535,16 @@ mod tests { #[test] fn test_is_dir() { - assert!(is_dir(const_cstr!("/").as_ptr())); - assert!(is_dir(const_cstr!("/dev").as_ptr())); - assert!(!is_dir(const_cstr!("/dev/null").as_ptr())); + assert!(is_dir(c"/".as_ptr())); + assert!(is_dir(c"/dev".as_ptr())); + assert!(!is_dir(c"/dev/null".as_ptr())); } #[test] fn test_file_type() { - assert!(FileType::new(const_cstr!("/").as_ptr()).unwrap().is_dir()); - assert!( - FileType::new(const_cstr!("/dev").as_ptr()) - .unwrap() - .is_dir() - ); - assert!( - !FileType::new(const_cstr!("/dev/null").as_ptr()) - .unwrap() - .is_file() - ); + assert!(FileType::new(c"/".as_ptr()).unwrap().is_dir()); + assert!(FileType::new(c"/dev".as_ptr()).unwrap().is_dir()); + assert!(!FileType::new(c"/dev/null".as_ptr()).unwrap().is_file()); } #[test]