Skip to content

Commit 01681e7

Browse files
committed
Update nightly rustc.
1 parent 74f1eb1 commit 01681e7

File tree

20 files changed

+33
-28
lines changed

20 files changed

+33
-28
lines changed

components/constellation/network_listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl NetworkListener {
143143
//
144144
// Ideally the Fetch code would handle manual redirects on its own
145145
self.initiate_fetch(None);
146-
}
146+
},
147147
_ => {
148148
// Response should be processed by script thread.
149149
self.should_send = true;

components/layout/display_list/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ impl Fragment {
17871787
clip,
17881788
);
17891789
}
1790-
}
1790+
},
17911791
SpecificFragmentInfo::ScannedText(ref text_fragment) => {
17921792
// Create the main text display item.
17931793
self.build_display_list_for_text_fragment(

components/layout/floats.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ impl Floats {
217217
max_inline_start is {:?}",
218218
max_inline_start
219219
);
220-
}
220+
},
221221
FloatKind::Right
222222
if float_pos.i < min_inline_end &&
223223
float_pos.b + float_size.block > block_start &&
@@ -232,7 +232,7 @@ impl Floats {
232232
is {:?}",
233233
min_inline_end
234234
);
235-
}
235+
},
236236
FloatKind::Left | FloatKind::Right => {},
237237
}
238238
}

components/layout/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ fn process_resolved_style_request_internal<'dom>(
10371037
.result
10381038
.map(|r| r.to_css_string())
10391039
.unwrap_or(String::new())
1040-
}
1040+
},
10411041

10421042
LonghandId::Bottom | LonghandId::Top | LonghandId::Right | LonghandId::Left
10431043
if applies && positioned && style.get_box().display != Display::None =>

components/layout_2020/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ fn process_offset_parent_query_inner(
547547
Au::from_f32_px(padding_box_corner.y.px()),
548548
);
549549
Some(padding_box_corner)
550-
}
550+
},
551551
Fragment::AbsoluteOrFixedPositioned(_) |
552552
Fragment::Box(_) |
553553
Fragment::Text(_) |

components/net/fetch/methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ pub fn main_fetch(
347347
.iter()
348348
.map(|(name, _)| name.as_str().to_owned())
349349
.collect();
350-
}
350+
},
351351
// Subsubstep 3.
352352
Some(list) => {
353353
response.cors_exposed_header_name_list =

components/script/dom/htmlanchorelement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ impl HTMLAnchorElementMethods for HTMLAnchorElement {
427427
if url.host().is_none() || url.cannot_be_a_base() || url.scheme() == "file" =>
428428
{
429429
return;
430-
}
430+
},
431431
None => return,
432432
// Step 4.
433433
Some(url) => {

components/script/dom/htmlinputelement.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,13 +695,13 @@ impl HTMLInputElement {
695695
{
696696
let intervals_from_base = ((value - step_base) / allowed_value_step).floor();
697697
intervals_from_base * allowed_value_step + step_base
698-
}
698+
},
699699
StepDirection::Up =>
700700
// step up a fractional step to be on a step multiple
701701
{
702702
let intervals_from_base = ((value - step_base) / allowed_value_step).ceil();
703703
intervals_from_base * allowed_value_step + step_base
704-
}
704+
},
705705
};
706706
} else {
707707
value = value +
@@ -2371,7 +2371,7 @@ impl VirtualMethods for HTMLInputElement {
23712371
{
23722372
self.SetValue(DOMString::from(""))
23732373
.expect("Failed to set input value on type change to ValueMode::Filename.");
2374-
}
2374+
},
23752375
_ => {},
23762376
}
23772377

components/script/dom/htmlmediaelement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl VideoFrameRenderer for MediaFrameRenderer {
209209
if let Some(old_image_key) = self.old_frame.take() {
210210
updates.push(ImageUpdate::DeleteImage(old_image_key));
211211
}
212-
}
212+
},
213213
Some((ref mut image_key, ref mut width, ref mut height)) => {
214214
self.old_frame = Some(*image_key);
215215

components/script/dom/node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,13 +2893,13 @@ impl NodeMethods for Node {
28932893
if !is_equal_processinginstruction(this, node) =>
28942894
{
28952895
return false;
2896-
}
2896+
},
28972897
NodeTypeId::CharacterData(CharacterDataTypeId::Text(_)) |
28982898
NodeTypeId::CharacterData(CharacterDataTypeId::Comment)
28992899
if !is_equal_characterdata(this, node) =>
29002900
{
29012901
return false;
2902-
}
2902+
},
29032903
// Step 4.
29042904
NodeTypeId::Element(..) if !is_equal_element_attrs(this, node) => return false,
29052905
NodeTypeId::Attr if !is_equal_attr(this, node) => return false,

0 commit comments

Comments
 (0)