in src/download.rs [533:546]
fn finalize(&mut self) -> Result<()> {
let temp_file = self
.temp_file
.take()
.context(error::MissingTempFileSnafu {})?;
let path = self.path.as_path();
temp_file
.into_temp_path()
.persist(path)
.context(error::PersistTempFileSnafu { path })?;
Ok(())
}