We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1d6daa commit f714f42Copy full SHA for f714f42
tonic-build/src/prost.rs
@@ -541,13 +541,9 @@ impl Builder {
541
protos: &[impl AsRef<Path>],
542
includes: &[impl AsRef<Path>],
543
) -> io::Result<()> {
544
- let out_dir = if let Some(out_dir) = self.out_dir.as_ref() {
545
- out_dir.clone()
546
- } else {
547
- PathBuf::from(std::env::var("OUT_DIR").unwrap())
548
- };
549
-
550
- config.out_dir(out_dir);
+ if let Some(out_dir) = self.out_dir.as_ref() {
+ config.out_dir(out_dir);
+ }
551
if let Some(path) = self.file_descriptor_set_path.as_ref() {
552
config.file_descriptor_set_path(path);
553
}
0 commit comments