Skip to content

Convert match to if let for Location header check #7969

Closed

Description

@jdm

We have an instance of match response.headers().get::<Location>() which does nothing in the None branch. This would be cleaner as an if let expression instead.

Code: components/net/http_loader.rs

Activity

  1. added
    E-less-complex
    I-refactor
    on Oct 11, 2015
  2. creativcoder commented on Oct 11, 2015

    @creativcoder
    Contributor

    I'd like to give this a try.

  3. added
    C-assigned
    on Oct 11, 2015
  4. added a commit that references this issue on Oct 12, 2015
  5. nox commented on Oct 12, 2015

    @nox
    Contributor
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

    A-networkC-assignedE-less-complexI-refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions