From 8003472fe06366fbd124f8046d12437bee757fdc Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Fri, 14 Jan 2022 07:45:38 -0500 Subject: [PATCH] [vector] clippy: add must_use attribute on Vector struct https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use --- src/types/vector.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/vector.rs b/src/types/vector.rs index 639be04..59e2bdc 100644 --- a/src/types/vector.rs +++ b/src/types/vector.rs @@ -102,6 +102,7 @@ pub type Vector3dUsize = Vector; /// A generic, fixed length, ordered vector type that supports /// computation with N-dimensional real and complex scalar data. +#[must_use] #[derive(Copy, Clone, Debug)] pub struct Vector where