Skip to content

Commit eb1e9eb

Browse files
authored
Merge branch 'dev' into dev
2 parents 6c61748 + 94418af commit eb1e9eb

File tree

1 file changed

+2
-2
lines changed
  • src/crates/ferurmc_codec/src/network_types

1 file changed

+2
-2
lines changed

src/crates/ferurmc_codec/src/network_types/varlong.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ where
143143
not(any(target_arch = "x86", target_arch = "x86_64")),
144144
target_os = "macos"
145145
))]
146-
async fn write_varlong<T>(varlong: Varlong, mut w: T) -> anyhow::Result<()>
146+
async fn write_varlong<T>(varlong: Varlong, mut w: T) -> Result<()>
147147
where
148148
T: AsyncWrite + Unpin,
149149
{
@@ -152,7 +152,7 @@ where
152152
let mut val = varlong.0 as u64;
153153
loop {
154154
if val & 0b1111111111111111111111111111111111111111111111111111111110000000 == 0 {
155-
w.write_u8(val as u8)?;
155+
w.write_u8(val as u8).await?;
156156
return Ok(());
157157
}
158158
w.write_u8(val as u8 & 0b01111111 | 0b10000000).await?;

0 commit comments

Comments
 (0)