summaryrefslogtreecommitdiffstats
path: root/src/common/mod.rs
diff options
context:
space:
mode:
authorPaul Masurel <paul.masurel@gmail.com>2017-12-14 19:30:31 +0900
committerPaul Masurel <paul.masurel@gmail.com>2017-12-14 19:30:31 +0900
commit1e55189db1afa75e80e49813c91264caaa1b6a1a (patch)
treed29f166d922317de6c934d77a80cafe0777e0945 /src/common/mod.rs
parent8b1b389a76ca9837cbb87c77a5be81432990e83f (diff)
NOBUG rustfmt
Diffstat (limited to 'src/common/mod.rs')
-rw-r--r--src/common/mod.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs
index 803fe8b..39c86aa 100644
--- a/src/common/mod.rs
+++ b/src/common/mod.rs
@@ -1,4 +1,3 @@
-
mod serialize;
mod timer;
mod vint;
@@ -6,8 +5,7 @@ mod counting_writer;
mod composite_file;
pub mod bitpacker;
-
-pub(crate) use self::composite_file::{CompositeWrite, CompositeFile};
+pub(crate) use self::composite_file::{CompositeFile, CompositeWrite};
pub use self::serialize::BinarySerializable;
pub use self::timer::Timing;
pub use self::timer::TimerTree;
@@ -22,7 +20,6 @@ pub fn make_io_err(msg: String) -> io::Error {
io::Error::new(io::ErrorKind::Other, msg)
}
-
/// Has length trait
pub trait HasLen {
/// Return length
@@ -36,7 +33,6 @@ pub trait HasLen {
const HIGHEST_BIT: u64 = 1 << 63;
-
/// Maps a `i64` to `u64`
///
/// For simplicity, tantivy internally handles `i64` as `u64`.
@@ -68,7 +64,6 @@ pub fn u64_to_i64(val: u64) -> i64 {
(val ^ HIGHEST_BIT) as i64
}
-
#[cfg(test)]
mod test {