Skip to content

Iterating through addresses matching a signature #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion src/game_engine/unity/il2cpp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl Class {
&'a self,
process: &'a Process,
module: &'a Module,
) -> impl FusedIterator<Item = Field> + '_ {
) -> impl FusedIterator<Item = Field> + 'a {
let mut this_class = Some(*self);

iter::from_fn(move || {
Expand Down
2 changes: 1 addition & 1 deletion src/game_engine/unreal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl UClass {
&'a self,
process: &'a Process,
module: &'a Module,
) -> impl FusedIterator<Item = UProperty> + '_ {
) -> impl FusedIterator<Item = UProperty> + 'a {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this returning 'a?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhhh it really shouldn't. Probably leftover data or clippy lints that stayed behind. Weird, I admit lol

Copy link
Collaborator Author

@Jujstme Jujstme Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ok I know now. Clippy complains because the lifetime is known to be 'a, so there's no reason to elide it.

// Logic: properties are contained in a linked list that can be accessed directly
// through the `property_link` field, from the most derived to the least derived class.
// Source: https://gist.github.com/apple1417/b23f91f7a9e3b834d6d052d35a0010ff#object-structure
Expand Down
Loading
Loading