diff options
Diffstat (limited to 'src/resources.rs')
-rw-r--r-- | src/resources.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources.rs b/src/resources.rs index 69173fe85..308fe1251 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -124,7 +124,6 @@ pub fn table_entries() -> Vec<(u32, String)> { fn test_table_entries() { let mut entries = table_entries(); entries.sort(); - assert_eq!(entries.len(), 3); assert_eq!(entries[0], (0, String::from("stdin"))); assert_eq!(entries[1], (1, String::from("stdout"))); assert_eq!(entries[2], (2, String::from("stderr"))); @@ -173,7 +172,7 @@ impl Resource { // close(2) is done by dropping the value. Therefore we just need to remove // the resource from the RESOURCE_TABLE. - pub fn close(&mut self) { + pub fn close(&self) { let mut table = RESOURCE_TABLE.lock().unwrap(); let r = table.remove(&self.rid); assert!(r.is_some()); |