diff --git a/src/heap_area.rs b/src/heap_area.rs index 5ade8ee..ed03cb8 100644 --- a/src/heap_area.rs +++ b/src/heap_area.rs @@ -63,7 +63,10 @@ impl HeapArea { } pub fn decode_java_string(&mut self, string_ref: ObjectReference, class_store: &ClassStore) -> String { - let byte_array_reference = self.object_area.get_object_field(string_ref, "value", self.object_area.get_object_class_index(string_ref), class_store).unwrap().expect_reference(); + let byte_array_reference = self.object_area + .get_object_field(string_ref, "value", self.object_area.get_object_class_index(string_ref), class_store) + .unwrap() + .expect_reference(); let byte_array_length = self.object_area.get_array_length(byte_array_reference); let mut utf16_bytes = Vec::with_capacity(byte_array_length / 2);