fix: all clippy warns
This commit is contained in:
1 parent
ae69bbc7f1
commit
19af3618cb
13 files changed
+44
-48
No files matched your search
@@ -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>,
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user