aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/azalea-protocol-macros/src/lib.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-30 19:36:59 -0800
committermat <git@matdoes.dev>2025-05-30 19:36:59 -0800
commitae4b1e85e669bc882d158509ef1eda46c6b2a72e (patch)
treeadf81cc01b0ce1575e95b99ad109fd92db1738f6 /azalea-protocol/azalea-protocol-macros/src/lib.rs
parenta64c6505049082175224802c5be51ac8f0cf4677 (diff)
downloadazalea-drasl-ae4b1e85e669bc882d158509ef1eda46c6b2a72e.tar.xz
fix clippy issues and improve formatting everywhere
Diffstat (limited to 'azalea-protocol/azalea-protocol-macros/src/lib.rs')
-rw-r--r--azalea-protocol/azalea-protocol-macros/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-protocol/azalea-protocol-macros/src/lib.rs b/azalea-protocol/azalea-protocol-macros/src/lib.rs
index a1255519..c11dd6d5 100644
--- a/azalea-protocol/azalea-protocol-macros/src/lib.rs
+++ b/azalea-protocol/azalea-protocol-macros/src/lib.rs
@@ -23,7 +23,7 @@ fn as_packet_derive(input: TokenStream, state: proc_macro2::TokenStream) -> Toke
let contents = quote! {
impl #ident {
- pub fn write(&self, buf: &mut impl std::io::Write) -> Result<(), std::io::Error> {
+ pub fn write(&self, buf: &mut impl std::io::Write) -> std::io::Result<()> {
azalea_buf::AzaleaWrite::azalea_write(self, buf)
}
@@ -361,7 +361,7 @@ pub fn declare_state_packets(input: TokenStream) -> TokenStream {
}
}
- fn write(&self, buf: &mut impl std::io::Write) -> Result<(), std::io::Error> {
+ fn write(&self, buf: &mut impl std::io::Write) -> std::io::Result<()> {
match self {
#serverbound_write_match_contents
}
@@ -405,7 +405,7 @@ pub fn declare_state_packets(input: TokenStream) -> TokenStream {
}
}
- fn write(&self, buf: &mut impl std::io::Write) -> Result<(), std::io::Error> {
+ fn write(&self, buf: &mut impl std::io::Write) -> std::io::Result<()> {
match self {
#clientbound_write_match_contents
}