mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Remove unused dependencies and dead code warnings
This commit is contained in:
parent
eaac539087
commit
18e53f06fe
4 changed files with 1 additions and 32 deletions
|
|
@ -64,6 +64,7 @@ impl<T: Clone> MessageQueue<T> {
|
|||
/// This method is only useful in tests. Non-test code should use subscribe
|
||||
/// instead.
|
||||
#[cfg(test)]
|
||||
#[allow(unused)]
|
||||
pub fn subscribe_any(&self) -> oneshot::Receiver<(u32, Vec<T>)> {
|
||||
let cursor = {
|
||||
let messages = self.messages.read().unwrap();
|
||||
|
|
|
|||
|
|
@ -36,17 +36,3 @@ where
|
|||
|
||||
seq.end()
|
||||
}
|
||||
|
||||
pub fn serialize_option_absolute<S, T>(
|
||||
maybe_path: &Option<T>,
|
||||
serializer: S,
|
||||
) -> Result<S::Ok, S::Error>
|
||||
where
|
||||
S: Serializer,
|
||||
T: AsRef<Path>,
|
||||
{
|
||||
match maybe_path {
|
||||
Some(path) => serialize_absolute(path, serializer),
|
||||
None => serializer.serialize_none(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue