From bd4b410e2f93bce9f86bdbccaf6f8b3ec8ee6e56 Mon Sep 17 00:00:00 2001
From: Kampfkarren <boynedmaster@gmail.com>
Date: Sat, 6 Jul 2024 15:38:28 -0700
Subject: [PATCH] Fix unused lints

---
 selene/src/roblox/api.rs       | 25 +++++--------------------
 selene/src/standard_library.rs |  4 ++--
 2 files changed, 7 insertions(+), 22 deletions(-)

diff --git a/selene/src/roblox/api.rs b/selene/src/roblox/api.rs
index ea55a880..937677b3 100644
--- a/selene/src/roblox/api.rs
+++ b/selene/src/roblox/api.rs
@@ -65,20 +65,13 @@ pub enum ApiMember {
 }
 
 #[derive(Deserialize)]
-#[serde(rename_all = "PascalCase")]
-pub struct ApiParameter {
-    pub default: Option<String>,
-    #[serde(rename = "Type")]
-    pub parameter_type: ApiValueType,
-}
+pub struct ApiParameter {}
 
 #[derive(Debug)]
 pub enum ApiValueType {
     Class { name: String },
     DataType { value: ApiDataType },
-    Group { value: ApiGroupType },
-    Primitive { value: ApiPrimitiveType },
-    Other { name: String },
+    Other,
 }
 
 impl<'de> Deserialize<'de> for ApiValueType {
@@ -118,15 +111,7 @@ impl<'de> Visitor<'de> for ApiValueTypeVisitor {
                 value: ApiDataType::deserialize(name.into_deserializer())?,
             },
 
-            "Group" => ApiValueType::Group {
-                value: ApiGroupType::deserialize(name.into_deserializer())?,
-            },
-
-            "Primitive" => ApiValueType::Primitive {
-                value: ApiPrimitiveType::deserialize(name.into_deserializer())?,
-            },
-
-            _ => ApiValueType::Other { name },
+            _ => ApiValueType::Other,
         })
     }
 }
@@ -167,7 +152,7 @@ pub enum ApiDataType {
     UDim,
     UDim2,
 
-    Other(String),
+    Other,
 }
 
 impl ApiDataType {
@@ -198,7 +183,7 @@ impl<'de> Deserialize<'de> for ApiDataType {
             "UDim2" => ApiDataType::UDim2,
             "Vector2" => ApiDataType::Vector2,
             "Vector3" => ApiDataType::Vector3,
-            _ => ApiDataType::Other(string),
+            _ => ApiDataType::Other,
         })
     }
 }
diff --git a/selene/src/standard_library.rs b/selene/src/standard_library.rs
index 3c455cf2..298f160e 100644
--- a/selene/src/standard_library.rs
+++ b/selene/src/standard_library.rs
@@ -41,10 +41,10 @@ pub enum StandardLibraryError {
 impl Display for StandardLibraryError {
     fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         match self {
-            StandardLibraryError::BaseStd { name, .. } => {
+            StandardLibraryError::BaseStd { name, source } => {
                 write!(
                     formatter,
-                    "failed to collect base standard library `{name}`",
+                    "failed to collect base standard library `{name}`: {source}",
                 )
             }