Bug 1548197 - Remove unused mut instances to fix warnings with rust nightly. r=kvark

Differential Revision: https://phabricator.services.mozilla.com/D29492

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2019-05-01 13:54:09 +00:00
Родитель de799203a0
Коммит e8dfcba2e3
3 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -940,7 +940,7 @@ impl<'a> DisplayListFlattener<'a> {
) -> Option<BuiltDisplayListIter<'a>> {
match *item.item() {
DisplayItem::Image(ref info) => {
let (mut layout, clip_and_scroll) = self.process_common_properties_with_bounds(
let (layout, clip_and_scroll) = self.process_common_properties_with_bounds(
&info.common,
&info.bounds,
apply_pipeline_clip,
@ -959,7 +959,7 @@ impl<'a> DisplayListFlattener<'a> {
);
}
DisplayItem::YuvImage(ref info) => {
let (mut layout, clip_and_scroll) = self.process_common_properties_with_bounds(
let (layout, clip_and_scroll) = self.process_common_properties_with_bounds(
&info.common,
&info.bounds,
apply_pipeline_clip,
@ -975,7 +975,7 @@ impl<'a> DisplayListFlattener<'a> {
);
}
DisplayItem::Text(ref info) => {
let (mut layout, clip_and_scroll) = self.process_common_properties_with_bounds(
let (layout, clip_and_scroll) = self.process_common_properties_with_bounds(
&info.common,
&info.bounds,
apply_pipeline_clip,
@ -1027,7 +1027,7 @@ impl<'a> DisplayListFlattener<'a> {
);
}
DisplayItem::Line(ref info) => {
let (mut layout, clip_and_scroll) = self.process_common_properties_with_bounds(
let (layout, clip_and_scroll) = self.process_common_properties_with_bounds(
&info.common,
&info.area,
apply_pipeline_clip,
@ -1043,7 +1043,7 @@ impl<'a> DisplayListFlattener<'a> {
);
}
DisplayItem::Gradient(ref info) => {
let (mut layout, clip_and_scroll) = self.process_common_properties_with_bounds(
let (layout, clip_and_scroll) = self.process_common_properties_with_bounds(
&info.common,
&info.bounds,
apply_pipeline_clip,
@ -1069,7 +1069,7 @@ impl<'a> DisplayListFlattener<'a> {
}
}
DisplayItem::RadialGradient(ref info) => {
let (mut layout, clip_and_scroll) = self.process_common_properties_with_bounds(
let (layout, clip_and_scroll) = self.process_common_properties_with_bounds(
&info.common,
&info.bounds,
apply_pipeline_clip,
@ -1097,7 +1097,7 @@ impl<'a> DisplayListFlattener<'a> {
);
}
DisplayItem::BoxShadow(ref info) => {
let (mut layout, clip_and_scroll) = self.process_common_properties_with_bounds(
let (layout, clip_and_scroll) = self.process_common_properties_with_bounds(
&info.common,
&info.box_bounds,
apply_pipeline_clip,
@ -1115,7 +1115,7 @@ impl<'a> DisplayListFlattener<'a> {
);
}
DisplayItem::Border(ref info) => {
let (mut layout, clip_and_scroll) = self.process_common_properties_with_bounds(
let (layout, clip_and_scroll) = self.process_common_properties_with_bounds(
&info.common,
&info.bounds,
apply_pipeline_clip,

Просмотреть файл

@ -875,7 +875,7 @@ impl RenderBackend {
doc.removed_pipelines.append(&mut txn.removed_pipelines);
if let Some(mut built_scene) = txn.built_scene.take() {
if let Some(built_scene) = txn.built_scene.take() {
doc.new_async_scene_ready(
built_scene,
&mut self.recycler,

Просмотреть файл

@ -444,7 +444,7 @@ fn main() {
let zoom_factor = args.value_of("zoom").map(|z| z.parse::<f32>().unwrap());
let chase_primitive = match args.value_of("chase") {
Some(s) => {
let mut items = s
let items = s
.split(',')
.map(|s| s.parse::<f32>().unwrap())
.collect::<Vec<_>>();