encode_tile: Take argument by reference
This commit is contained in:
parent
7d12da32c8
commit
4642f425f1
@ -33,7 +33,7 @@ pub fn encode_image<W: Write>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
encode_tile::encode_tile(data, *quality, writer)?
|
encode_tile::encode_tile(&data, *quality, writer)?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ use std::io::Write;
|
|||||||
use crate::protocol::{ProtocolWriter, ProtocolWriterResult};
|
use crate::protocol::{ProtocolWriter, ProtocolWriterResult};
|
||||||
|
|
||||||
pub fn encode_tile<W: Write>(
|
pub fn encode_tile<W: Write>(
|
||||||
data: [u8; 256],
|
data: &[u8; 256],
|
||||||
quality: u8,
|
quality: u8,
|
||||||
writer: &mut ProtocolWriter<W>
|
writer: &mut ProtocolWriter<W>
|
||||||
) -> ProtocolWriterResult<()> {
|
) -> ProtocolWriterResult<()> {
|
||||||
|
Loading…
Reference in New Issue
Block a user