diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-02-12 18:58:38 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-02-12 18:58:38 +0100 |
commit | 2b0eb98c1d0889d7966b2341528417cb3f916911 (patch) | |
tree | 337f4305f1a2012ac205b065c4908272e6d21a7a /components/layout/display_list_builder.rs | |
parent | 31f65959818751ab0dadc18acb5a90357067c9a4 (diff) | |
download | servo-2b0eb98c1d0889d7966b2341528417cb3f916911.tar.gz servo-2b0eb98c1d0889d7966b2341528417cb3f916911.zip |
Fix some warnings in layout.
Diffstat (limited to 'components/layout/display_list_builder.rs')
-rw-r--r-- | components/layout/display_list_builder.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index c071bb5777e..beea14abca0 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -468,9 +468,7 @@ impl FragmentDisplayListBuilding for Fragment { position_to_offset(gradient.stops[i - 1].position.unwrap(), length) }; let (end_index, end_offset) = - match gradient.stops - .as_slice() - .slice_from(i) + match gradient.stops[i..] .iter() .enumerate() .find(|&(_, ref stop)| stop.position.is_some()) { |