Skip to content

Tool out of date with modern linux #8

@rtaft

Description

@rtaft

I attempted to build this on Ubuntu 23.10 ARM as well as Linux Mint 21.2, both get this error:

error[E0713]: borrow may still be in use when destructor runs
   --> /home/rtaft/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-1.4.0/src/form_urlencoded.rs:246:40
    |
244 | impl<'a> Target for ::UrlQuery<'a> {
    |      -- lifetime `'a` defined here
245 |     fn as_mut_string(&mut self) -> &mut String { &mut self.url.serialization }
246 |     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`

For more information about this error, try `rustc --explain E0713`.
error: could not compile `url` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions