Skip to content

Commit c2e04dc

Browse files
authored
Cleanup useless/duplicated code in gen tools (#15113)
1 parent a176aac commit c2e04dc

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

datafusion/proto-common/gen/src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
use std::path::Path;
1919

20-
type Error = Box<dyn std::error::Error>;
21-
type Result<T, E = Error> = std::result::Result<T, E>;
22-
2320
fn main() -> Result<(), String> {
2421
let proto_dir = Path::new("proto");
2522
let proto_path = Path::new("proto/datafusion_common.proto");

datafusion/proto/gen/src/main.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
use std::path::Path;
1919

20-
type Error = Box<dyn std::error::Error>;
21-
type Result<T, E = Error> = std::result::Result<T, E>;
22-
2320
fn main() -> Result<(), String> {
2421
let proto_dir = Path::new("datafusion/proto");
2522
let proto_path = Path::new("datafusion/proto/proto/datafusion.proto");
@@ -29,7 +26,6 @@ fn main() -> Result<(), String> {
2926
let descriptor_path = proto_dir.join("proto/proto_descriptor.bin");
3027

3128
prost_build::Config::new()
32-
.protoc_arg("--experimental_allow_proto3_optional")
3329
.file_descriptor_set_path(&descriptor_path)
3430
.out_dir(out_dir)
3531
.compile_well_known_types()

0 commit comments

Comments
 (0)