We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c61748 + 94418af commit eb1e9ebCopy full SHA for eb1e9eb
src/crates/ferurmc_codec/src/network_types/varlong.rs
@@ -143,7 +143,7 @@ where
143
not(any(target_arch = "x86", target_arch = "x86_64")),
144
target_os = "macos"
145
))]
146
-async fn write_varlong<T>(varlong: Varlong, mut w: T) -> anyhow::Result<()>
+async fn write_varlong<T>(varlong: Varlong, mut w: T) -> Result<()>
147
where
148
T: AsyncWrite + Unpin,
149
{
@@ -152,7 +152,7 @@ where
152
let mut val = varlong.0 as u64;
153
loop {
154
if val & 0b1111111111111111111111111111111111111111111111111111111110000000 == 0 {
155
- w.write_u8(val as u8)?;
+ w.write_u8(val as u8).await?;
156
return Ok(());
157
}
158
w.write_u8(val as u8 & 0b01111111 | 0b10000000).await?;
0 commit comments