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

url not compiling #3

Open
briancolfer opened this issue Apr 27, 2020 · 2 comments
Open

url not compiling #3

briancolfer opened this issue Apr 27, 2020 · 2 comments

Comments

@briancolfer
Copy link

 Compiling url v1.7.0
error[E0713]: borrow may still be in use when destructor runs
   --> /Users/briancolfer/.cargo/registry/src/github.com-1ecc6299db9ec823/url-1.7.0/src/form_urlencoded.rs:261:40
    |
259 | impl<'a> Target for ::UrlQuery<'a> {
    |      -- lifetime `'a` defined here
260 |     fn as_mut_string(&mut self) -> &mut String { &mut self.url.serialization }
261 |     fn finish(self) -> &'a mut ::Url { self.url }
    |                                        ^^^^^^^^ - here, drop of `self` needs exclusive access to `*self.url`, because the type `UrlQuery<'_>` implements the `Drop` trait
    |                                        |
    |                                        returning this value requires that `*self.url` is borrowed for `'a`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0713`.
@briancolfer
Copy link
Author

I guess updating with modifications to Cargo.toml and running rust update works...

@briancolfer
Copy link
Author

Now running it gives this run time error: Error: FATAL: role "postgres" does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant