mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Don't return RemoteServerClient in result
This commit is contained in:
@@ -27,15 +27,15 @@ pub struct Channel<'a, R: ReadWrite> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<R: ReadWrite> RemoteServerClient<R> {
|
impl<R: ReadWrite> RemoteServerClient<R> {
|
||||||
pub fn new(idevice: R) -> Result<Self, IdeviceError> {
|
pub fn new(idevice: R) -> Self {
|
||||||
let mut channels = HashMap::new();
|
let mut channels = HashMap::new();
|
||||||
channels.insert(0, VecDeque::new());
|
channels.insert(0, VecDeque::new());
|
||||||
Ok(Self {
|
Self {
|
||||||
idevice,
|
idevice,
|
||||||
current_message: 0,
|
current_message: 0,
|
||||||
new_channel: 1,
|
new_channel: 1,
|
||||||
channels,
|
channels,
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn into_inner(self) -> R {
|
pub fn into_inner(self) -> R {
|
||||||
|
|||||||
Reference in New Issue
Block a user