diff --git a/relay-pyo3/src/processing.rs b/relay-pyo3/src/processing.rs index 7d0586dbf6f..713634287fd 100644 --- a/relay-pyo3/src/processing.rs +++ b/relay-pyo3/src/processing.rs @@ -622,14 +622,12 @@ pub fn meta_with_chunks<'py>( let current_item = data .get_item(key)? .expect("Current item should have existed"); - let as_dict = current_item.downcast::()?; - result.insert(key.to_string(), meta_with_chunks(as_dict, &item)?); + result.insert(key.to_string(), meta_with_chunks(¤t_item, &item)?); } else if let Ok(data) = data.downcast::() { let int_key = key.to_str()?.parse::()?; match data.get_item(int_key) { Ok(val) => { - let val = val.downcast::()?; - result.insert(key.to_string(), meta_with_chunks(val, &item)?); + result.insert(key.to_string(), meta_with_chunks(&val, &item)?); } Err(_) => { result.insert(