mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
dc_array: remove unnecessary "as u32" cast
This commit is contained in:
committed by
link2xt
parent
443ad04f46
commit
2c11df46a7
@@ -11,7 +11,7 @@ impl dc_array_t {
|
|||||||
pub(crate) fn get_id(&self, index: usize) -> u32 {
|
pub(crate) fn get_id(&self, index: usize) -> u32 {
|
||||||
match self {
|
match self {
|
||||||
Self::Locations(array) => array[index].location_id,
|
Self::Locations(array) => array[index].location_id,
|
||||||
Self::Uint(array) => array[index] as u32,
|
Self::Uint(array) => array[index],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user