From 34295873926d90207dc263f404401a64b4c1aafd Mon Sep 17 00:00:00 2001 From: KAMADA Ken'ichi Date: Tue, 26 Mar 2019 23:02:34 +0900 Subject: [PATCH] Wrap a line to fit with 80-column terminals. --- src/endian.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/endian.rs b/src/endian.rs index 1260052..112004c 100644 --- a/src/endian.rs +++ b/src/endian.rs @@ -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) } )