aboutsummaryrefslogtreecommitdiff
path: root/src/share.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/share.rs')
-rw-r--r--src/share.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share.rs b/src/share.rs
index e0d2d2b..ad63290 100644
--- a/src/share.rs
+++ b/src/share.rs
@@ -1,5 +1,5 @@
use super::*;
-use std::{collections::HashMap, io, sync::Arc, time::Duration};
+use std::{borrow::Cow, collections::HashMap, io, sync::Arc, time::Duration};
use tokio::{
sync::{mpsc, watch, Mutex, RwLock},
task::JoinSet,
@@ -93,7 +93,7 @@ pub async fn new<S: UdpSender, R: UdpReceiver>(
Pkt {
chan: 0,
unrel: false,
- data: &[CtlType::Ping as u8],
+ data: Cow::Borrowed(&[CtlType::Ping as u8]),
},
)
.await