Skip to content

Commit

Permalink
fix: document types on oscar_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Uinelj committed Jul 25, 2023
1 parent 395e72e commit 3ef7bfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/oscar_doc/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use std::{
use crate::error::Error;

// use super::types::Document;
use crate::v3::Document;
use crate::oscar_doc::Document;

/// Document reader.
/// The inner type has to implement [BufRead].
Expand Down Expand Up @@ -324,7 +324,7 @@ mod tests {
use std::io::{BufReader, Cursor, Write};

use super::DocReader;
use crate::{error::Error, v3::Document};
use crate::{error::Error, oscar_doc::Document};
use flate2::{write::GzEncoder, Compression};

fn get_samples() -> &'static str {
Expand Down
4 changes: 2 additions & 2 deletions src/oscar_doc/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io::Write;

use crate::error::Error;

use crate::v3::Document;
use crate::oscar_doc::Document;

pub struct DocWriter<W: Write> {
w: W,
Expand Down Expand Up @@ -48,8 +48,8 @@ mod tests {
io::{BufReader, Cursor},
};

use crate::oscar_doc::Document;
use crate::oscar_doc::Reader;
use crate::v3::Document;

use super::DocWriter;

Expand Down
2 changes: 1 addition & 1 deletion tests/test_read.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{fs::File, io::BufReader, path::PathBuf};

use oscar_io::v3::Document;
use oscar_io::oscar_doc::Document;
use oscar_io::{
error::Error,
oscar_doc::{Reader, SplitFolderReader, SplitReader},
Expand Down

0 comments on commit 3ef7bfe

Please sign in to comment.