From a3a55a5a5790ad2575707d55532cdc650bd64f01 Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Tue, 20 Oct 2015 01:02:18 +0200 Subject: [PATCH] Do not always inline --- src/square_matrix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/square_matrix.rs b/src/square_matrix.rs index 329d2b4..42eadf7 100644 --- a/src/square_matrix.rs +++ b/src/square_matrix.rs @@ -49,7 +49,7 @@ impl SquareMatrix { pub fn n(&self) -> usize { self.n } pub fn into_vec(self) -> Vec { self.data } - #[inline(always)] + #[inline] pub fn map_row T>(&mut self, row: usize, f: F) { assert!(row < self.n); @@ -61,7 +61,7 @@ impl SquareMatrix { } } - #[inline(always)] + #[inline] pub fn map_col T>(&mut self, col: usize, f: F) { for row in 0..self.n { let n = f(self[(row, col)]);