diff --git a/frida_core/src/android_tun.rs b/frida_core/src/android_tun.rs index 57004e2..d80625b 100644 --- a/frida_core/src/android_tun.rs +++ b/frida_core/src/android_tun.rs @@ -23,12 +23,12 @@ pub struct DeviceReader { impl DeviceWriter { pub async fn write(&mut self, buf: &Vec) -> Result> { - Ok(self.writer.unwrap().write(buf).await?) + Ok(self.writer.write(buf).await?) } } impl DeviceReader { pub async fn read(&mut self, buf: &mut Vec) -> Result> { - Ok(self.reader.read_buf(buf).await?) + Ok(self.reader.read(buf).await?) } } \ No newline at end of file