diff options
Diffstat (limited to 'src/proto.rs')
-rw-r--r-- | src/proto.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/proto.rs b/src/proto.rs index d74a05f..07717b7 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -81,6 +81,8 @@ mod serde_utc { ser.serialize_str(&t.to_rfc3339_opts(SecondsFormat::Nanos, true)) } else { let mut buf = [0_u8; 12]; + // FIXME: arrayref needs to silence this per-expression + #[allow(clippy::eval_order_dependence)] let (buf_secs, buf_nanos) = mut_array_refs![&mut buf, 8, 4]; *buf_secs = t.timestamp().to_be_bytes(); *buf_nanos = t.timestamp_subsec_nanos().to_be_bytes(); @@ -107,6 +109,8 @@ mod serde_utc { de.deserialize_str(RFC3339Visitor) } else { let mut buf = <[u8; 12]>::deserialize(de)?; + // FIXME: arrayref needs to silence this per-expression + #[allow(clippy::eval_order_dependence)] let (buf_secs, buf_nanos) = array_refs![&mut buf, 8, 4]; let secs = i64::from_be_bytes(*buf_secs); let nanos = u32::from_be_bytes(*buf_nanos); |