From 99b6ddfa546228ab7ce592828c5558a63c1eb976 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Fri, 1 May 2020 16:07:19 +0900 Subject: [PATCH] Run clippy on Sobol sampler, and fix/silence warnings. --- sub_crates/sobol/src/lib.rs | 2 ++ sub_crates/sobol/src/wide.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sub_crates/sobol/src/lib.rs b/sub_crates/sobol/src/lib.rs index c8a79c5..f2d0906 100644 --- a/sub_crates/sobol/src/lib.rs +++ b/sub_crates/sobol/src/lib.rs @@ -3,6 +3,8 @@ //! This implementation is limited to `2^16` samples, and will loop back to //! the start of the sequence after that limit. +#![allow(clippy::unreadable_literal)] + mod wide; use wide::Int4; diff --git a/sub_crates/sobol/src/wide.rs b/sub_crates/sobol/src/wide.rs index 94b6fbb..f240043 100644 --- a/sub_crates/sobol/src/wide.rs +++ b/sub_crates/sobol/src/wide.rs @@ -255,7 +255,7 @@ pub(crate) mod fallback { impl From<[u32; 4]> for Int4 { fn from(v: [u32; 4]) -> Self { - Int4 { v: v } + Int4 { v } } } }