mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
~[] to Vec in main
This commit is contained in:
parent
6522e7827d
commit
3d1a885a55
2 changed files with 2 additions and 3 deletions
|
@ -596,7 +596,6 @@ impl<T: Tile> QuadtreeNode<T> {
|
|||
};
|
||||
|
||||
delta = delta + c_delta;
|
||||
// This was a ~[] = ~[] + ~[] which copies. I think this is the equivalent operation.
|
||||
request.push_all(c_request.as_slice());
|
||||
unused.push_all_move(c_unused);
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ struct Float {
|
|||
#[deriving(Clone)]
|
||||
struct FloatList {
|
||||
/// Information about each of the floats here.
|
||||
floats: ~[Float],
|
||||
floats: Vec<Float>,
|
||||
/// Cached copy of the maximum top offset of the float.
|
||||
max_top: Au,
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ struct FloatList {
|
|||
impl FloatList {
|
||||
fn new() -> FloatList {
|
||||
FloatList {
|
||||
floats: ~[],
|
||||
floats: Vec::new(),
|
||||
max_top: Au(0),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue