Start `use` paths to local modules with `crate::`

This was changed automatically with `cargo fix --edition`.
pull/1/head
Carol (Nichols || Goulding) 4 years ago
parent 2172fe7861
commit 8c55dd6a15
No known key found for this signature in database
GPG Key ID: D04B39A6CA243902

@ -30,10 +30,10 @@ use std::sync::mpsc::{channel, Receiver};
use std::thread::{spawn, JoinHandle};
use argparse::{ArgumentParser, StoreTrue, Collect};
use index::InMemoryIndex;
use write::write_index_to_tmp_file;
use merge::FileMerge;
use tmp::TmpDir;
use crate::index::InMemoryIndex;
use crate::write::write_index_to_tmp_file;
use crate::merge::FileMerge;
use crate::tmp::TmpDir;
/// Create an inverted index for the given list of `documents`,
/// storing it in the specified `output_dir`.

@ -3,9 +3,9 @@ use std::io::{self, BufWriter};
use std::mem;
use std::path::{Path, PathBuf};
use tmp::TmpDir;
use read::IndexFileReader;
use write::IndexFileWriter;
use crate::tmp::TmpDir;
use crate::read::IndexFileReader;
use crate::write::IndexFileWriter;
pub struct FileMerge {
output_dir: PathBuf,

@ -6,7 +6,7 @@ use std::io::prelude::*;
use std::io::{self, BufReader, SeekFrom};
use std::path::Path;
use byteorder::{LittleEndian, ReadBytesExt};
use write::IndexFileWriter;
use crate::write::IndexFileWriter;
/// A `IndexFileReader` does a single linear pass over an index file from
/// beginning to end. Needless to say, this is not how an index is normally

@ -2,8 +2,8 @@ use std::fs::File;
use std::io::{self, BufWriter, SeekFrom};
use std::io::prelude::*;
use std::path::PathBuf;
use index::InMemoryIndex;
use tmp::TmpDir;
use crate::index::InMemoryIndex;
use crate::tmp::TmpDir;
use byteorder::{LittleEndian, WriteBytesExt};
/// Writer for saving an index to a binary file.

Loading…
Cancel
Save