Remove unused dependencies and dead code warnings

This commit is contained in:
Lucien Greathouse
2022-05-22 19:20:41 -04:00
parent eaac539087
commit 18e53f06fe
4 changed files with 1 additions and 32 deletions

15
Cargo.lock generated
View File

@@ -1724,19 +1724,6 @@ dependencies = [
"snax",
]
[[package]]
name = "rlua"
version = "0.17.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93397b9792dc237cab7554ab4c4128b8aa5fc9ec25892cfd82c92286055313d0"
dependencies = [
"bitflags",
"bstr",
"cc",
"libc",
"num-traits",
]
[[package]]
name = "rmp"
version = "0.8.11"
@@ -1802,10 +1789,8 @@ dependencies = [
"rbx_reflection",
"rbx_reflection_database",
"rbx_xml",
"regex",
"reqwest",
"ritz",
"rlua",
"roblox_install",
"rojo-insta-ext",
"serde",

View File

@@ -69,15 +69,12 @@ globset = "0.4.8"
humantime = "2.1.0"
hyper = { version = "0.14.13", features = ["server", "tcp", "http1"] }
jod-thread = "0.1.2"
lazy_static = "1.4.0"
log = "0.4.14"
maplit = "1.0.2"
notify = "4.0.17"
opener = "0.5.0"
regex = "1.5.4"
reqwest = { version = "0.11.10", features = ["blocking", "json"] }
ritz = "0.1.0"
rlua = "0.17.1"
roblox_install = "1.0.0"
serde = { version = "1.0.130", features = ["derive", "rc"] }
serde_json = "1.0.68"

View File

@@ -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();

View File

@@ -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(),
}
}