mirror of
https://github.com/LUDevNet/ParadoxServer.git
synced 2026-04-30 06:19:15 -05:00
fix: clippy lints
This commit is contained in:
+3
-4
@@ -71,10 +71,9 @@ impl Borrow<str> for PercentDecoded {
|
||||
}
|
||||
}
|
||||
|
||||
impl ToString for PercentDecoded {
|
||||
#[inline]
|
||||
fn to_string(&self) -> String {
|
||||
self.0.clone()
|
||||
impl fmt::Display for PercentDecoded {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str(&self.0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,9 +5,6 @@ use serde::Serialize;
|
||||
|
||||
use super::ReverseLookup;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct LootMatrixResult {}
|
||||
|
||||
#[derive(Debug, Default, Clone, Serialize)]
|
||||
pub struct LootMatrixIndexRev {
|
||||
#[serde(skip_serializing_if = "LootMatrixIndexComponents::is_empty")]
|
||||
|
||||
@@ -1,17 +1,4 @@
|
||||
use latin1str::Latin1Str;
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
pub(crate) struct BehaviorTemplate<'a> {
|
||||
#[serde(rename = "behaviorID")]
|
||||
behavior_id: i32,
|
||||
#[serde(rename = "templateID")]
|
||||
template_id: i32,
|
||||
#[serde(rename = "effectID")]
|
||||
effect_id: i32,
|
||||
#[serde(rename = "effectHandle")]
|
||||
effect_handle: &'a Latin1Str,
|
||||
}
|
||||
|
||||
pub fn match_action_key(key: &Latin1Str) -> bool {
|
||||
matches!(
|
||||
|
||||
Reference in New Issue
Block a user