Skip to content

Commit

Permalink
Use a consistent struct constructor (#9)
Browse files Browse the repository at this point in the history
This addresses a clippy lint
  • Loading branch information
afnanenayet authored May 29, 2021
1 parent e5899c0 commit 078289b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kensler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 078289b

Please sign in to comment.