From 2c11df46a7e53a96996868265f786beb5c9c445e Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Wed, 24 Jun 2020 20:49:15 +0300 Subject: [PATCH] dc_array: remove unnecessary "as u32" cast --- deltachat-ffi/src/dc_array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deltachat-ffi/src/dc_array.rs b/deltachat-ffi/src/dc_array.rs index cea573b50..48c0d4985 100644 --- a/deltachat-ffi/src/dc_array.rs +++ b/deltachat-ffi/src/dc_array.rs @@ -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], } }