util/error: add inline attributes
This commit is contained in:
parent
7161b02eba
commit
7ab04e200b
@ -132,6 +132,7 @@ impl fmt::Debug for Error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline(always)]
|
||||||
fn index(error: &Error) -> usize {
|
fn index(error: &Error) -> usize {
|
||||||
match error {
|
match error {
|
||||||
&Error::BsfNotFound => 0,
|
&Error::BsfNotFound => 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user