Browse Source

Appease clippy

```
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
```
Tamir Duberstein 5 months ago
parent
commit
aa240baadf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      aya-obj/src/obj.rs

+ 1 - 1
aya-obj/src/obj.rs

@@ -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> {