about summary refs log tree commit diff
path: root/src/libstd/ebml.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-15 07:38:07 -0700
committerbors <bors@rust-lang.org>2013-05-15 07:38:07 -0700
commit4e8261009948ed1cfbbdaf4ecc3fadef795b27b7 (patch)
tree4eb235105de5e0b361a7a661ca347530f51e8283 /src/libstd/ebml.rs
parent803c12d85fa898950d9efa9078b64519a1b78ab6 (diff)
parenta2a8596c3dd963e7b51f11998cffc46033bf6d63 (diff)
downloadrust-4e8261009948ed1cfbbdaf4ecc3fadef795b27b7.tar.gz
rust-4e8261009948ed1cfbbdaf4ecc3fadef795b27b7.zip
auto merge of #6487 : recrack/rust/vec_len, r=thestinger
Rename vec::len(var) to var.len()

```
libcore, libfuzzer, librustc, librustdoc, libstd, libsyntax
test/auxiliary
test/bench
test/run-pass
```

Diffstat (limited to 'src/libstd/ebml.rs')
-rw-r--r--src/libstd/ebml.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstd/ebml.rs b/src/libstd/ebml.rs
index 062ad403dd6..07c1c226d1f 100644
--- a/src/libstd/ebml.rs
+++ b/src/libstd/ebml.rs
@@ -628,7 +628,6 @@ pub mod writer {
 
     use core::io;
     use core::str;
-    use core::vec;
 
     // ebml writing
     pub struct Encoder {
@@ -707,7 +706,7 @@ pub mod writer {
 
         fn wr_tagged_bytes(&mut self, tag_id: uint, b: &[u8]) {
             write_vuint(self.writer, tag_id);
-            write_vuint(self.writer, vec::len(b));
+            write_vuint(self.writer, b.len());
             self.writer.write(b);
         }
 
@@ -760,7 +759,7 @@ pub mod writer {
         }
 
         fn wr_bytes(&mut self, b: &[u8]) {
-            debug!("Write %u bytes", vec::len(b));
+            debug!("Write %u bytes", b.len());
             self.writer.write(b);
         }