feat: update dependencies
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
use std::io::Write;
|
||||
use base64::Engine;
|
||||
use base64::engine::general_purpose::STANDARD;
|
||||
|
||||
use clap::{App, Arg, ArgMatches, SubCommand};
|
||||
use hyper::{Body, Client, Method, Request, Response, StatusCode};
|
||||
@@ -191,7 +193,7 @@ fn do_offline_init(_arg_matches: &ArgMatches<'_>, _sub_arg_matches: &ArgMatches<
|
||||
hex::decode(&hex)?
|
||||
} else if line.starts_with("base64:") {
|
||||
let base64: String = line.chars().skip(7).collect();
|
||||
base64::decode(&base64)?
|
||||
STANDARD.decode(&base64)?
|
||||
} else {
|
||||
line.as_bytes().to_vec()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user