util/error: add inline attributes

This commit is contained in:
meh 2015-10-01 20:43:24 +02:00
parent 7161b02eba
commit 7ab04e200b

View File

@ -132,6 +132,7 @@ impl fmt::Debug for Error {
}
}
#[inline(always)]
fn index(error: &Error) -> usize {
match error {
&Error::BsfNotFound => 0,