test: add (and fix) more deny lints
Signed-off-by: Stephen Waits <steve@waits.net>
This commit is contained in:
1 parent
f3deb17832
commit
0641f73ab3
2 files changed
+28
-11
No files matched your search
@@ -96,7 +96,7 @@ pub struct HeightVector<const N: usize> {
|
||||
impl<const N: usize> HeightVector<N> {
|
||||
/// A new height vector is a random unit vector
|
||||
pub(crate) fn random() -> Self {
|
||||
let mut rng = rand::thread_rng();
|
||||
let mut rng = thread_rng();
|
||||
let mut vec = [0.0; N];
|
||||
for i in vec.iter_mut().take(N) {
|
||||
*i = rng.gen::<FloatType>() - 0.5;
|
||||
|
||||
Reference in new issue
Block a user