]> code.octet-stream.net Git - m17rt/blobdiff - m17app/src/tnc.rs
Defining input sources for Soundmodem
[m17rt] / m17app / src / tnc.rs
index 99bacc721aa9a5e99dd96fa31989472f32c0b6c8..921585b7a92ef1ce935bdba3405caf78564739f1 100644 (file)
@@ -19,7 +19,7 @@ pub enum TncError {
 
 impl Tnc for std::net::TcpStream {
     fn try_clone(&mut self) -> Result<Self, TncError> {
-        self.try_clone().map_err(|_| TncError::Unknown)
+        std::net::TcpStream::try_clone(self).map_err(|_| TncError::Unknown)
     }
 
     fn start(&mut self) -> Result<(), TncError> {