Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android-activity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ impl AndroidApp {
///
/// This must only be called from your `android_main()` thread and it may panic if called
/// from another thread.
pub fn input_events_iter(&self) -> Result<input::InputIterator> {
pub fn input_events_iter(&'_ self) -> Result<input::InputIterator<'_>> {
Copy link
Member

Choose a reason for hiding this comment

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

If you apply the suggestion on self it does this. If you apply the suggestion on InputIterator I think it only suggests this:

Suggested change
pub fn input_events_iter(&'_ self) -> Result<input::InputIterator<'_>> {
pub fn input_events_iter(&self) -> Result<input::InputIterator<'_>> {

Copy link
Member

Choose a reason for hiding this comment

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

See also #184 where I fixed exactly this.

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, yup, will merge that instead, thanks.

let receiver = {
let guard = self.inner.read().unwrap();
guard.input_events_receiver()?
Expand Down