From b20d7f8b89f5e4b065b0a3fee52ece8db6f99a74 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Sat, 28 Sep 2019 16:14:16 +0000 Subject: Silence clippy warning. --- src/model.rs | 3 +++ src/proto.rs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/model.rs b/src/model.rs index bb4a93b..51386a5 100644 --- a/src/model.rs +++ b/src/model.rs @@ -2,6 +2,9 @@ // // See COPYING. +// FIXME: arrayref needs to silence this per-expression +#![allow(clippy::eval_order_dependence)] + use base64; use std::collections::HashMap; use std::fmt; 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); -- cgit