Make with_bytes_reader/with_bytes_writer pure

This commit is contained in:
Erick Tryzelaar
2012-10-18 09:04:47 -07:00
parent 4e03ffdb65
commit b18a15171b
2 changed files with 12 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ pub enum DVec<A> {
}
/// Creates a new, empty dvec
pub fn DVec<A>() -> DVec<A> {
pub pure fn DVec<A>() -> DVec<A> {
DVec_({mut data: ~[]})
}