Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
```
error: the following explicit lifetimes could be elided: 'data, 'file
    --> aya-obj/src/obj.rs:1083:6
     |
1083 | impl<'data, 'file, 'a> TryFrom<&'a ObjSection<'data, 'file>> for Section<'a> {
     |      ^^^^^  ^^^^^                             ^^^^^  ^^^^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
```
  • Loading branch information
tamird committed Oct 4, 2024
1 parent 55ed9e0 commit aa240ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aya-obj/src/obj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ struct Section<'a> {
relocations: Vec<Relocation>,
}

impl<'data, 'file, 'a> TryFrom<&'a ObjSection<'data, 'file>> for Section<'a> {
impl<'a> TryFrom<&'a ObjSection<'_, '_>> for Section<'a> {
type Error = ParseError;

fn try_from(section: &'a ObjSection) -> Result<Section<'a>, ParseError> {
Expand Down

0 comments on commit aa240ba

Please sign in to comment.