Skip to content

Commit 9c2835f

Browse files
committed
download: move File items down
1 parent ad0330f commit 9c2835f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/dist/download.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ pub struct DownloadCfg<'a> {
2828
pub process: &'a Process,
2929
}
3030

31-
pub(crate) struct File {
32-
path: PathBuf,
33-
}
34-
35-
impl ops::Deref for File {
36-
type Target = Path;
37-
38-
fn deref(&self) -> &Path {
39-
self.path.as_path()
40-
}
41-
}
42-
4331
impl<'a> DownloadCfg<'a> {
4432
/// construct a download configuration
4533
pub(crate) fn new(cfg: &'a Cfg<'a>) -> Self {
@@ -227,3 +215,15 @@ fn file_hash(path: &Path, notify_handler: &dyn Fn(Notification<'_>)) -> Result<S
227215

228216
Ok(format!("{:x}", hasher.finalize()))
229217
}
218+
219+
pub(crate) struct File {
220+
path: PathBuf,
221+
}
222+
223+
impl ops::Deref for File {
224+
type Target = Path;
225+
226+
fn deref(&self) -> &Path {
227+
self.path.as_path()
228+
}
229+
}

0 commit comments

Comments
 (0)