fix!: remove possible panic from client builder

fix: simplify integer divisions
This commit is contained in:
ThetaDev 2023-05-31 12:14:11 +02:00
parent 182f9ebfb8
commit 32b4800b46
9 changed files with 40 additions and 21 deletions

View file

@ -393,7 +393,10 @@ async fn main() {
storage_dir.push("rustypipe");
_ = std::fs::create_dir(&storage_dir);
let rp = RustyPipe::builder().storage_dir(storage_dir).build();
let rp = RustyPipe::builder()
.storage_dir(storage_dir)
.build()
.unwrap();
match cli.command {
Commands::Download {