Skip to content

Instantly share code, notes, and snippets.

@richo
Created August 22, 2018 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richo/3985d79705c943487368ac312f3336ee to your computer and use it in GitHub Desktop.
Save richo/3985d79705c943487368ac312f3336ee to your computer and use it in GitHub Desktop.
error[E0621]: explicit lifetime required in the type of `conn`
--> src/ptp_device.rs:24:19
|
22 | pub fn reader<'a>(self, conn: &'a mut GoproConnection) -> GoproFileReader<'a> {
| ---- consider changing the type of `conn` to `&'a mut ptp_device::GoproConnection<'a>`
23 | GoproFileReader {
24 | conn: conn,
| ^^^^ lifetime `'a` required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment