From 1cc74188c8fd64e2ea95fc4663721f75c6884ee1 Mon Sep 17 00:00:00 2001 From: Kristofer Rye Date: Fri, 20 Mar 2020 11:24:17 -0500 Subject: [PATCH] Fix use of Self See https://github.com/rust-lang/rust/issues/69611. This is necessary because > Using `Self` should always refer to the `Self` type, just as using > `Self {...}` would. In other words, your code should never have > compiled. This'll fix the recurring build failure on nightly Rusts. Signed-off-by: Kristofer Rye --- src/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vec.rs b/src/vec.rs index c1f49e5..321a031 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -32,7 +32,7 @@ where type Output = Vec3d; fn mul(self, scalar: T) -> Vec3d { - Self( + Vec3d( scalar * self.0.into(), scalar * self.1.into(), scalar * self.2.into(),