Skip to content

Commit 235896a

Browse files
committed
Update smallvec to 1.0
1 parent b0d3a5b commit 235896a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ memoffset = "0.5"
4343
takeable-option = "0.5"
4444
backtrace = "0.3.2"
4545
lazy_static = "1.0"
46-
smallvec = "0.6"
46+
smallvec = "1.0"
4747
fnv = "1.0.5"
4848

4949
[build-dependencies]

src/buffer/fences.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Fences {
3737
let mut existing_fences = self.fences.borrow_mut();
3838
let mut new_fences = SmallVec::new();
3939

40-
for existing in existing_fences.drain() {
40+
for existing in existing_fences.drain(..) {
4141
if (existing.0.start >= range.start && existing.0.start < range.end) ||
4242
(existing.0.end > range.start && existing.0.end < range.end)
4343
{
@@ -53,7 +53,7 @@ impl Fences {
5353
/// Cleans up all fences in the container. Must be called or you'll get a panic.
5454
pub fn clean(&mut self, ctxt: &mut CommandContext) {
5555
let mut fences = self.fences.borrow_mut();
56-
for (_, sync) in fences.drain() {
56+
for (_, sync) in fences.drain(..) {
5757
unsafe { sync::destroy_linear_sync_fence(ctxt, sync) };
5858
}
5959
}
@@ -73,7 +73,7 @@ impl<'a> Inserter<'a> {
7373
let mut written = false;
7474

7575
let mut existing_fences = self.fences.fences.borrow_mut();
76-
for existing in existing_fences.drain() {
76+
for existing in existing_fences.drain(..) {
7777
if existing.0.start < self.range.start && existing.0.end <= self.range.start {
7878
new_fences.push(existing);
7979

0 commit comments

Comments
 (0)