Skip to content

Commit 3e6cd0a

Browse files
committed
Fix errors
1 parent 23bcc45 commit 3e6cd0a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

proto-gen/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ message TestMessage {
301301
let test_cfg = create_simple_test_cfg(None);
302302
let opts = Opts {
303303
tonic: test_cfg.tonic.clone(),
304-
format: true,
304+
format: Some("2021".into()),
305305
routine: Routine::Generate {
306306
workspace: test_cfg.workspace.clone(),
307307
},
@@ -313,7 +313,7 @@ message TestMessage {
313313
run_with_opts(opts).unwrap();
314314
let opts = Opts {
315315
tonic: test_cfg.tonic.clone(),
316-
format: true,
316+
format: Some("2021".into()),
317317
routine: Routine::Validate {
318318
workspace: test_cfg.workspace.clone(),
319319
},
@@ -325,7 +325,7 @@ message TestMessage {
325325
run_with_opts(opts).unwrap();
326326
let opts = Opts {
327327
tonic: test_cfg.tonic.clone(),
328-
format: false,
328+
format: None,
329329
routine: Routine::Validate {
330330
workspace: test_cfg.workspace,
331331
},
@@ -348,7 +348,7 @@ message TestMessage {
348348
let test_cfg = create_simple_test_cfg(Some(my_output_tmp.path().to_path_buf()));
349349
let opts = Opts {
350350
tonic: test_cfg.tonic.clone(),
351-
format: false,
351+
format: None,
352352
routine: Routine::Generate {
353353
workspace: test_cfg.workspace,
354354
},
@@ -444,7 +444,7 @@ message NestedTransitiveMsg {
444444
};
445445
let opts = Opts {
446446
tonic,
447-
format: false,
447+
format: None,
448448
routine: Routine::Generate { workspace },
449449
prepend_header: true,
450450
prepend_header_file: None,

0 commit comments

Comments
 (0)