Skip to content
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

gpio: pl061: fix new clippy error #962

Merged
merged 1 commit into from
Feb 11, 2023
Merged

Conversation

wedsonaf
Copy link

Without this fix, we get the following new clippy error:

error: deref which would be done by auto-deref
   --> drivers/gpio/gpio_pl061_rust.rs:285:75
    |
285 |         let gen_inner = unsafe { data.as_mut().map_unchecked_mut(|d| &mut (**d).inner) };
    |                                                                           ^^^^^ help: try this: `d`
    |

Signed-off-by: Wedson Almeida Filho [email protected]

Without this fix, we get the following new clippy error:

```
error: deref which would be done by auto-deref
   --> drivers/gpio/gpio_pl061_rust.rs:285:75
    |
285 |         let gen_inner = unsafe { data.as_mut().map_unchecked_mut(|d| &mut (**d).inner) };
    |                                                                           ^^^^^ help: try this: `d`
    |
```

Signed-off-by: Wedson Almeida Filho <[email protected]>
@ojeda ojeda merged commit 8d68625 into Rust-for-Linux:rust Feb 11, 2023
@wedsonaf wedsonaf deleted the pl061-clippy branch February 12, 2023 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants