fix: fix clippy issue in examples/ folder

This commit is contained in:
Michael Bolin
2026-04-16 12:31:06 -07:00
parent dfff8a7d03
commit 41a5146ba1

View File

@@ -1,7 +1,12 @@
use std::path::PathBuf;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let proto_dir = PathBuf::from(std::env::args().nth(1).expect("proto dir"));
let Some(proto_dir_arg) = std::env::args().nth(1) else {
eprintln!("Usage: generate-proto <proto-dir>");
std::process::exit(1);
};
let proto_dir = PathBuf::from(proto_dir_arg);
let proto_file = proto_dir.join("codex.thread_store.v1.proto");
tonic_prost_build::configure()