diff --git a/src/wayland_record.rs b/src/wayland_record.rs index 8e49768..0549c4d 100644 --- a/src/wayland_record.rs +++ b/src/wayland_record.rs @@ -224,13 +224,13 @@ impl WaylandRecorder { .clone() .downcast::>() .expect("cannot down cast streams to vec array") - .get(0) + .first() .expect("cannot get first object from streams array") .clone() .downcast::() .expect("cannot down cast first object to structure") .fields() - .get(0) + .first() .expect("cannot get first field from structure") .clone() .downcast::()