fix: all clippy warns

This commit is contained in:
Snowiiii committed 2024-08-04 00:40:27 +02:00
1 parent ae69bbc7f1
commit 19af3618cb
13 files changed
+44 -48

No files matched your search

-12
View File
@@ -1,13 +1 @@
use serde::Serialize;
#[derive(Debug, Clone, Serialize)]
pub struct ChatType {
chat: Decoration,
narration: Decoration,
}
#[derive(Debug, Clone, Serialize)]
struct Decoration {
translation_key: String,
// style: Option<>
parameters: Vec<String>,
}
+1 -1
View File
@@ -67,7 +67,7 @@ pub(super) fn entires() -> Vec<RegistryEntry<'static>> {
let items: Vec<_> = NAMES
.iter()
.map(|name| RegistryEntry {
entry_id: (*name).into(),
entry_id: name,
data: fastnbt::to_bytes_with_opts(
&DamageType {
exhaustion: 0.1,