From 600bb175e7e97c591aed6a4c75a877b871758db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crozet=20S=C3=A9bastien?= Date: Sun, 11 Apr 2021 14:35:10 +0200 Subject: [PATCH] Fix compilation with the mint feature. --- src/third_party/mint/mint_point.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/third_party/mint/mint_point.rs b/src/third_party/mint/mint_point.rs index 0b60762a..fbce1c88 100644 --- a/src/third_party/mint/mint_point.rs +++ b/src/third_party/mint/mint_point.rs @@ -1,9 +1,9 @@ use crate::base::storage::{Storage, StorageMut}; -use crate::{OVector, Point, Scalar, U2, U3}; +use crate::{OVector, Point, Scalar}; use std::convert::{AsMut, AsRef}; macro_rules! impl_from_into_mint_1D( - ($($NRows: ident => $PT:ident, $VT:ident [$SZ: expr]);* $(;)*) => {$( + ($($NRows: expr => $PT:ident, $VT:ident [$SZ: expr]);* $(;)*) => {$( impl From> for Point where T: Scalar { #[inline] @@ -47,6 +47,6 @@ macro_rules! impl_from_into_mint_1D( // Implement for points of dimension 2, 3. impl_from_into_mint_1D!( - U2 => Point2, Vector2[2]; - U3 => Point3, Vector3[3]; + 2 => Point2, Vector2[2]; + 3 => Point3, Vector3[3]; );