Wrap a line to fit with 80-column terminals.

This commit is contained in:
KAMADA Ken'ichi 2019-03-26 23:02:34 +09:00
parent 288a7e85c5
commit 3429587392
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ macro_rules! generate_load {
($name:ident, $int_type:ident, $from_func:ident) => (
fn $name(buf: &[u8], offset: usize) -> $int_type {
let mut num = [0u8; mem::size_of::<$int_type>()];
num.copy_from_slice(&buf[offset .. offset + mem::size_of::<$int_type>()]);
num.copy_from_slice(
&buf[offset .. offset + mem::size_of::<$int_type>()]);
$int_type::$from_func(num)
}
)