encode_tile: Take argument by reference

This commit is contained in:
Pyrex 2024-04-10 12:55:38 -07:00
parent 7d12da32c8
commit 4642f425f1
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ pub fn encode_image<W: Write>(
}
}
encode_tile::encode_tile(data, *quality, writer)?
encode_tile::encode_tile(&data, *quality, writer)?
}
}
}

View File

@ -3,7 +3,7 @@ use std::io::Write;
use crate::protocol::{ProtocolWriter, ProtocolWriterResult};
pub fn encode_tile<W: Write>(
data: [u8; 256],
data: &[u8; 256],
quality: u8,
writer: &mut ProtocolWriter<W>
) -> ProtocolWriterResult<()> {