changeset 12:86b39697bc0e

Move util module; add lines module; update writelog mod
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 31 Jan 2016 11:38:54 +0000
parents 252068bd2a8b
children 1761ff21fedd
files src/formats/mod.rs src/formats/writelog.rs src/lib.rs
diffstat 3 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/formats/mod.rs	Sun Jan 31 11:37:53 2016 +0000
+++ b/src/formats/mod.rs	Sun Jan 31 11:38:54 2016 +0000
@@ -1,5 +1,5 @@
 //! Contains code for on-disk data structures and file formats.
 
-// TODO: Write input module for text files
-//
+pub mod lines;
 pub mod writelog;
+pub mod util;
--- a/src/formats/writelog.rs	Sun Jan 31 11:37:53 2016 +0000
+++ b/src/formats/writelog.rs	Sun Jan 31 11:38:54 2016 +0000
@@ -7,8 +7,8 @@
 use std::vec;
 use std::string;
 
-use mapreducer::{Record};
-use util::{RecordIterator};
+use mapreducer::Record;
+use formats::util::RecordIterator;
 
 /// A length-prefixed record stream named for the original use case,
 /// which was to write a log of all write operations to a database.
--- a/src/lib.rs	Sun Jan 31 11:37:53 2016 +0000
+++ b/src/lib.rs	Sun Jan 31 11:38:54 2016 +0000
@@ -1,7 +1,6 @@
 pub mod closure_mr;
 pub mod formats;
 pub mod mapreducer;
-pub mod util;
 
 #[test]
 fn it_works() {