Merge pull request #203 from eqlabs/hide_filereader

ipfs-unixfs: Hide FileReader
This commit is contained in:
Joonas Koivunen 2020-06-24 14:45:05 +03:00 committed by GitHub
commit ab699a416c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,9 @@
# Next
* Hide `ipfs_unixfs::file::reader` to hide non-exported type on pub fn [#203]
[#203]: https://github.com/rs-ipfs/rust-ipfs/pull/203
# 0.0.1
Initial release.

View File

@ -8,7 +8,7 @@ use std::borrow::Cow;
use std::fmt;
/// Low level UnixFS file descriptor reader support.
pub mod reader;
mod reader;
/// Higher level API for visiting the file tree.
pub mod visit;

View File

@ -182,11 +182,6 @@ impl<'a> FileReader<'a> {
(fc, traversal)
}
/// Returns the total size of the file.
pub fn file_size(&self) -> u64 {
self.file_size
}
}
/// Carrier of validation data used between blocks during a walk on the merkle tree.
@ -244,6 +239,7 @@ where
Links(I),
}
#[cfg(test)]
impl<'a, I> FileContent<'a, I>
where
I: Iterator<Item = (PBLink<'a>, Range<u64>)>,