From 078289b075f0c5aef1b366fa91427d79ceafeda7 Mon Sep 17 00:00:00 2001 From: Afnan Enayet Date: Sat, 29 May 2021 00:29:44 -0500 Subject: [PATCH] Use a consistent struct constructor (#9) This addresses a clippy lint --- src/kensler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kensler.rs b/src/kensler.rs index 1a13a96..58e6517 100644 --- a/src/kensler.rs +++ b/src/kensler.rs @@ -39,7 +39,7 @@ impl HashedPermutation { /// Create a new instance of the hashed permutation given a length and seed pub fn new_with_seed(length: NonZeroU32, seed: u32) -> Self { - HashedPermutation { length, seed } + HashedPermutation { seed, length } } /// Shuffle or permute a particular value.