summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-07-10 13:04:35 +0200
committerGitHub <noreply@github.com>2021-07-10 13:04:35 +0200
commitf37bb668b0eb13d15d7ebfdf931e6412a52bf761 (patch)
treedf9f84ec6fd83ff76bc2eab36065c26ead1a4841 /src
parent4616e70cf97d9db258c6f54b783395d08337d350 (diff)
parentab2061acc6d00d215fda6d4e1e70ccee6d830fdf (diff)
Merge pull request #300 from matthiasbeyer/fix-unwrap
Fix unwrap: Return error instead of crashing
Diffstat (limited to 'src')
-rw-r--r--src/container.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/container.rs b/src/container.rs
index dfd65d2..ad26238 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -365,9 +365,8 @@ impl<'docker> Container<'docker> {
.skip(1)
.collect::<std::path::PathBuf>(),
bytes,
- )
- .unwrap();
- let data = ar.into_inner().unwrap();
+ )?;
+ let data = ar.into_inner()?;
self.copy_to(Path::new("/"), data.into()).await?;
Ok(())