Skip to content

Make use of Url::join #9002

Closed
Closed

Description

@nox

The common idiom UrlParser::new().base_url(base_url).parse(input) can now be written as base_url.parse(input) base_url.join(input).

Activity

  1. added
    E-less-complex
    I-refactor
    on Dec 16, 2015
  2. SimonSapin commented on Dec 16, 2015

    @SimonSapin
    Member

    … and UrlParser is going away in rust-url 1.0, so upgrading now will make things easier later :)

  3. nox commented on Dec 16, 2015

    @nox
    ContributorAuthor

    Hah, nice. Could you open an issue with what you have in mind for UrlParser 1.0?

  4. SimonSapin commented on Dec 16, 2015

    @SimonSapin
    Member

    I have a branch, but everything is broken in it right now. I’ll write something up when it’s presentable.

  5. magopian commented on Dec 18, 2015

    @magopian
    Contributor

    Discussing that with @nox and @SimonSapin on irc, it's base_url.join(input) that should be used.

  6. nox commented on Dec 18, 2015

    @nox
    ContributorAuthor

    Yeah, most confusing typo ever.

  7. magopian commented on Dec 18, 2015

    @magopian
    Contributor

    Do you want to assign this PR so it doesn't stay in the servo starters?

  8. added
    C-assigned
    on Dec 18, 2015
  9. jdm commented on Dec 18, 2015

    @jdm
    Member

    Done!

  10. added a commit that references this issue on Dec 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-assignedE-less-complexI-refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions