mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +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 {
|
||||
match self {
|
||||
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