From c406111c668a8f50f339a319ff7bb7acdcd56bd1 Mon Sep 17 00:00:00 2001 From: lc Date: Thu, 13 Nov 2025 23:22:41 +0800 Subject: [PATCH] make compiler happy --- src/webrtc_dummy.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/webrtc_dummy.rs b/src/webrtc_dummy.rs index a6f9344..7e2e142 100644 --- a/src/webrtc_dummy.rs +++ b/src/webrtc_dummy.rs @@ -13,8 +13,32 @@ pub struct WebRTCStream { // mock struct } +impl Clone for WebRTCStream { + fn clone(&self) -> Self { + WebRTCStream { + } + } +} + impl WebRTCStream { + pub async fn new( + _: &str, + _: u64, + ) -> ResultType { + Ok(Self {}) + } + + #[inline] + pub async fn get_local_endpoint(&self) -> ResultType { + Ok(String::new()) + } + + #[inline] + pub async fn set_remote_endpoint(&self, _: &str) -> ResultType<()> { + Ok(()) + } + #[inline] pub fn set_raw(&mut self) { }