mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix longstanding message_queue warning
This commit is contained in:
parent
23b8308282
commit
98238e4516
1 changed files with 2 additions and 5 deletions
|
|
@ -1,7 +1,4 @@
|
||||||
use std::{
|
use std::sync::{Mutex, RwLock};
|
||||||
mem,
|
|
||||||
sync::{Mutex, RwLock},
|
|
||||||
};
|
|
||||||
|
|
||||||
use futures::sync::oneshot;
|
use futures::sync::oneshot;
|
||||||
|
|
||||||
|
|
@ -58,7 +55,7 @@ impl<T: Clone> MessageQueue<T> {
|
||||||
|
|
||||||
// Without this annotation, Rust gets confused since the first argument
|
// Without this annotation, Rust gets confused since the first argument
|
||||||
// is a MutexGuard, but the second is a Vec.
|
// is a MutexGuard, but the second is a Vec.
|
||||||
mem::replace::<Vec<_>>(&mut message_listeners, remaining_listeners);
|
*message_listeners = remaining_listeners;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Subscribe to any messages occurring after the given message cursor.
|
/// Subscribe to any messages occurring after the given message cursor.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue