fix: apply clippy lints to workspace
also add contributors to /pumpkin command Co-Authored-By: Fyor <90567841+fyordev@users.noreply.github.com> Co-Authored-By: MartV0 <34748938+martv0@users.noreply.github.com> Co-Authored-By: FabseGP <fabsegp@fabseman.space>
This commit is contained in:
1 parent
3776b225e4
commit
fb13004b47
263 files changed
+2173
-1651
No files matched your search
@@ -60,9 +60,10 @@ pub(crate) fn build() -> TokenStream {
|
||||
.to_shouty_snake_case()
|
||||
);
|
||||
|
||||
let fixed_time = match dim.fixed_time {
|
||||
Some(t) => quote! { Some(#t) },
|
||||
None => quote! { None },
|
||||
let fixed_time = if let Some(t) = dim.fixed_time {
|
||||
quote! { Some(#t) }
|
||||
} else {
|
||||
quote! { None }
|
||||
};
|
||||
|
||||
let ambient_light = dim.ambient_light;
|
||||
@@ -77,7 +78,7 @@ pub(crate) fn build() -> TokenStream {
|
||||
let minecraft_name = if name.contains(':') {
|
||||
name.clone()
|
||||
} else {
|
||||
format!("minecraft:{}", name)
|
||||
format!("minecraft:{name}")
|
||||
};
|
||||
|
||||
variants.extend(quote! {
|
||||
|
||||
Reference in new issue
Block a user