Just one more issue with groupsmigration - unexhaustive match

This commit is contained in:
Sebastian Thiel
2021-04-01 16:49:10 +08:00
parent 1a9d155449
commit 1569ff47b7
2 changed files with 2 additions and 2 deletions

View File

@@ -289,7 +289,7 @@ if dry_run {
match match protocol {
% if mc.media_params:
% for p in mc.media_params:
CallType::Upload(UploadProtocol::${p.protocol.capitalize()}) => call.${upload_action_fn(api.terms.upload_action, p.type.suffix)}(input_file.unwrap(), mime_type.unwrap()),
CallType::Upload(UploadProtocol::${p.protocol.capitalize()}) => call.${upload_action_fn(api.terms.upload_action, p.type.suffix)}(input_file.unwrap(), mime_type.unwrap()).await,
% endfor
CallType::Standard => unreachable!()
% else:

View File

@@ -37,7 +37,7 @@ async fn main() {
let matches = app.get_matches();
let debug = matches.is_present("${DEBUG_FLAG}");
match Engine::new(matches) {
match Engine::new(matches).await {
Err(err) => {
exit_status = err.exit_code;
writeln!(io::stderr(), "{}", err).ok();