From 7ab04e200b75032cfa36e04975990ba6245112df Mon Sep 17 00:00:00 2001 From: meh Date: Thu, 1 Oct 2015 20:43:24 +0200 Subject: [PATCH] util/error: add inline attributes --- src/util/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/error.rs b/src/util/error.rs index 74fa544..54e19b2 100644 --- a/src/util/error.rs +++ b/src/util/error.rs @@ -132,6 +132,7 @@ impl fmt::Debug for Error { } } +#[inline(always)] fn index(error: &Error) -> usize { match error { &Error::BsfNotFound => 0,