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 upAdd comments for the "Constructing the form data set" algorithm #8955
Conversation
|
Nice, this should be helpful. Some nits... Reviewed 2 of 2 files at r1. components/script/dom/htmlinputelement.rs, line 445 [r1] (raw file): components/script/dom/htmlinputelement.rs, line 448 [r1] (raw file): Comments from the review on Reviewable.io |
3151de2
to
bc7e5e5
|
| } | ||
| } | ||
| // Step 3.1: it's not the "Image Button" and doesn't have a name attribute. | ||
| _ if name.is_empty() => return None |
This comment has been minimized.
This comment has been minimized.
KiChjang
Dec 13, 2015
Member
This part here is what's generating the compilation error. You removed the _ match case and added a pattern guard here.
This has different semantics than the code you deleted. Previously it meant "match against all other values of ty, and if their name is empty, return None". Right now it means "match against all other values of ty that has their name empty, and return None". See the difference?
|
Yep, sorry I should've been more specific. I meant something like, match foo {
foobar => (),
_ => if thing {
return None;
}
}(braces are unnecessary) |
bc7e5e5
to
8d2f9fc
|
yeah, sorry guys, I'm hurried |
|
@bors-servo try |
1 similar comment
|
@bors-servo try |
… r=<try> Add comments for the "Constructing the form data set" algorithm Fixes #7852 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8955) <!-- Reviewable:end -->
|
@bors-servo delegate=Wafflespeanut |
|
|
|
Review status: 1 of 2 files reviewed at latest revision, 3 unresolved discussions. components/script/dom/htmlinputelement.rs, line 445 [r1] (raw file): Comments from the review on Reviewable.io |
|
@Manishearth You forgot to mention that the current changes are fine :) |
|
@bors-servo r+ |
|
|
|
@bors-servo try- |
|
@bors-servo try- force |
|
@bors-servo try- r=waffles retry force |
|
|
… r=waffles Add comments for the "Constructing the form data set" algorithm Fixes #7852 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8955) <!-- Reviewable:end -->
|
|
askobara commentedDec 13, 2015
Fixes #7852