From 824244622fa3a2ebb6c80c18e5703a5361474602 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 7 Mar 2018 17:42:57 -0800 Subject: [PATCH] update test --- src/fs.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fs.rs b/src/fs.rs index ac09f232..56534bbf 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -82,7 +82,7 @@ impl NamedFile { self.path.as_path() } - /// Returns reference to the underlying `File` object. + /// Set `CpuPool` to use #[inline] pub fn set_cpu_pool(mut self, cpu_pool: CpuPool) -> Self { self.cpu_pool = Some(cpu_pool); @@ -502,7 +502,8 @@ mod tests { #[test] fn test_named_file() { assert!(NamedFile::open("test--").is_err()); - let mut file = NamedFile::open("Cargo.toml").unwrap(); + let mut file = NamedFile::open("Cargo.toml").unwrap() + .set_cpu_pool(CpuPool::new(1)); { file.file(); let _f: &File = &file; } { let _f: &mut File = &mut file; }