chore: bump rust

and fix new lints that come with it
This commit is contained in:
Matthias Ahouansou
2024-05-05 13:11:44 +01:00
parent 79c4bb17ca
commit 256dae983b
21 changed files with 43 additions and 46 deletions

View File

@@ -20,7 +20,7 @@ impl Watchers {
let mut rx = match self.watchers.write().unwrap().entry(prefix.to_vec()) {
hash_map::Entry::Occupied(o) => o.get().1.clone(),
hash_map::Entry::Vacant(v) => {
let (tx, rx) = tokio::sync::watch::channel(());
let (tx, rx) = watch::channel(());
v.insert((tx, rx.clone()));
rx
}