From 96a2d13370e546ebc43461d0ae6ce51c0cf48afb Mon Sep 17 00:00:00 2001 From: Fenrir Date: Thu, 18 Aug 2016 23:16:57 -0700 Subject: [PATCH] minor cleanup --- src/services/fs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/fs.rs b/src/services/fs.rs index d868e71..688341e 100644 --- a/src/services/fs.rs +++ b/src/services/fs.rs @@ -106,7 +106,7 @@ impl Archive { } } - pub fn id(&self) -> ArchiveID { + pub fn get_id(&self) -> ArchiveID { self.id } } @@ -135,7 +135,7 @@ impl OpenOptions { unsafe { let mut file_handle: u32 = 0; let wide = path.as_os_str().encode_wide().collect::>(); - let ctr_path = fsMakePath(PathType::UTF16.into(), wide.as_slice().as_ptr() as *mut _); + let ctr_path = fsMakePath(PathType::UTF16.into(), wide.as_ptr() as *mut _); let ret = FSUSER_OpenFile(&mut file_handle, self.arch_handle, ctr_path, flags, 0); if ret < 0 { Err(ret)