aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-09 16:48:26 +0100
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-09 16:48:26 +0100
commitcac22bec5ca72c5feaa774d335c9aaba7ee12f6f (patch)
tree5908be50e548ebb0551e4dc463948f14bc99e1ae /src/lib.rs
parent701f249245ecbd813e7da924fb9eafab5a7cfd0b (diff)
downloadmt_rudp-cac22bec5ca72c5feaa774d335c9aaba7ee12f6f.tar.xz
Get rid of Cell usage
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f0a91fe..334692a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -11,13 +11,7 @@ pub use prelude::*;
use async_trait::async_trait;
use num_enum::TryFromPrimitive;
-use std::{
- cell::{Cell, OnceCell},
- collections::HashMap,
- io, ops,
- sync::Arc,
- time::Instant,
-};
+use std::{cell::OnceCell, collections::HashMap, io, ops, sync::Arc, time::Instant};
use tokio::{
sync::{mpsc, watch, Mutex, RwLock},
task::JoinSet,
@@ -150,7 +144,7 @@ struct Split {
}
struct RecvChan {
- packets: Vec<Cell<Option<Vec<u8>>>>, // char ** 😛
+ packets: Vec<Option<Vec<u8>>>, // char ** 😛
splits: HashMap<u16, Split>,
seqnum: u16,
num: u8,