From 7ce26821e9262d46575a209b7b018d6256e4a422 Mon Sep 17 00:00:00 2001 From: firejoust <42525540+firejoust@users.noreply.github.com> Date: Sat, 17 Dec 2022 11:28:32 +1100 Subject: [PATCH] fix CI lint --- src/api/enchantments.rs | 2 +- src/api/items.rs | 2 +- src/api/recipes.rs | 2 +- src/api/versions.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/enchantments.rs b/src/api/enchantments.rs index 026fd48..1b5d89b 100644 --- a/src/api/enchantments.rs +++ b/src/api/enchantments.rs @@ -20,7 +20,7 @@ impl Enchantments { pub fn enchantments_array(&self) -> DataResult> { let content = get_version_specific_file(&self.version, ENCHANTMENTS_FILE)?; - serde_json::from_str::>(&*content).map_err(DataError::from) + serde_json::from_str::>(&content).map_err(DataError::from) } /// Returns a map of enchantments indexed by ID diff --git a/src/api/items.rs b/src/api/items.rs index 9c62989..e454b14 100644 --- a/src/api/items.rs +++ b/src/api/items.rs @@ -19,7 +19,7 @@ impl Items { pub fn items_array(&self) -> DataResult> { let content = get_version_specific_file(&self.version, ITEMS_FILE)?; - serde_json::from_str::>(&*content).map_err(DataError::from) + serde_json::from_str::>(&content).map_err(DataError::from) } /// Returns the items indexed by name diff --git a/src/api/recipes.rs b/src/api/recipes.rs index 2c802af..7b95a27 100644 --- a/src/api/recipes.rs +++ b/src/api/recipes.rs @@ -18,6 +18,6 @@ impl Recipes { /// Returns a list of recipes indexed by item ID pub fn recipes(&self) -> DataResult>> { let content = get_version_specific_file(&self.version, RECIPES_FILE)?; - serde_json::from_str::>>(&*content).map_err(DataError::from) + serde_json::from_str::>>(&content).map_err(DataError::from) } } diff --git a/src/api/versions.rs b/src/api/versions.rs index 4a1fe57..1cbac3e 100644 --- a/src/api/versions.rs +++ b/src/api/versions.rs @@ -7,7 +7,7 @@ use std::collections::HashMap; /// Returns the unsorted list of versions pub fn versions() -> DataResult> { let content = get_common_file(PROTOCOL_VERSIONS_FILE)?; - let versions = serde_json::from_str::>(&*content)?; + let versions = serde_json::from_str::>(&content)?; Ok(versions) } @@ -52,5 +52,5 @@ pub fn latest_stable() -> DataResult { /// Returns a list of available version information pub fn available_versions() -> DataResult> { let content = get_common_file(VERSIONS_FILE)?; - serde_json::from_str::>(&*content).map_err(DataError::from) + serde_json::from_str::>(&content).map_err(DataError::from) }