Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upConvert match to `if let` for Location header check #7969
Closed
Labels
Comments
|
I'd like to give this a try. |
bors-servo
pushed a commit
that referenced
this issue
Oct 12, 2015
convert match to if let for location header check #7969 @jdm Hi, very eager for my first pull request to Servo. Please review the changes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7973) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have an instance of
match response.headers().get::<Location>()which does nothing in theNonebranch. This would be cleaner as anif letexpression instead.Code: components/net/http_loader.rs