dc_array: remove unnecessary "as u32" cast

This commit is contained in:
Alexander Krotov
2020-06-24 20:49:15 +03:00
committed by link2xt
parent 443ad04f46
commit 2c11df46a7

View File

@@ -11,7 +11,7 @@ impl dc_array_t {
pub(crate) fn get_id(&self, index: usize) -> u32 {
match self {
Self::Locations(array) => array[index].location_id,
Self::Uint(array) => array[index] as u32,
Self::Uint(array) => array[index],
}
}