diff --git a/idevice/src/dvt/remote_server.rs b/idevice/src/dvt/remote_server.rs index 9b8d78b..561f321 100644 --- a/idevice/src/dvt/remote_server.rs +++ b/idevice/src/dvt/remote_server.rs @@ -27,15 +27,15 @@ pub struct Channel<'a, R: ReadWrite> { } impl RemoteServerClient { - pub fn new(idevice: R) -> Result { + pub fn new(idevice: R) -> Self { let mut channels = HashMap::new(); channels.insert(0, VecDeque::new()); - Ok(Self { + Self { idevice, current_message: 0, new_channel: 1, channels, - }) + } } pub fn into_inner(self) -> R {