restructure sharry::file
This commit is contained in:
parent
3b4cc49fd1
commit
c5809d8faf
4 changed files with 9 additions and 3 deletions
|
|
@ -8,11 +8,11 @@ use std::{
|
||||||
use log::debug;
|
use log::debug;
|
||||||
use ureq::{Error::Other, http::StatusCode};
|
use ureq::{Error::Other, http::StatusCode};
|
||||||
|
|
||||||
use super::{
|
use super::super::{
|
||||||
alias::{Alias, SharryAlias},
|
alias::{Alias, SharryAlias},
|
||||||
chunkedfile::{Chunk, ChunkedFile},
|
|
||||||
share::Share,
|
share::Share,
|
||||||
};
|
};
|
||||||
|
use super::chunkedfile::{Chunk, ChunkedFile};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct File<'t> {
|
pub struct File<'t> {
|
||||||
7
src/sharry/file/mod.rs
Normal file
7
src/sharry/file/mod.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
|
mod chunkedfile;
|
||||||
|
mod file;
|
||||||
|
|
||||||
|
pub use chunkedfile::{Chunk, ChunkedFile};
|
||||||
|
pub use file::File;
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
mod alias;
|
mod alias;
|
||||||
mod api;
|
mod api;
|
||||||
mod chunkedfile;
|
|
||||||
mod file;
|
mod file;
|
||||||
mod share;
|
mod share;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue