replace vec.truncate(0) with vec.clear()
[nihav.git] / nihav-llaudio / src / codecs / ape.rs
index c80dab233492cf41dfb57c51380d596939e73af1..8a9073dda5228da15e7ac9c097246cefd8e762f9 100644 (file)
@@ -126,7 +126,7 @@ impl NADecoder for APEDecoder {
             validate!(nblocks > 0);
             let bits                    = u32::from(pktbuf[4]);
             validate!(bits < 32);
-            self.data.truncate(0);
+            self.data.clear();
             self.data.reserve((pktbuf.len() & !3) + 2);
             for word in pktbuf[8..].chunks_exact(4) {
                 self.data.push(word[3]);