Skip to content
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -541,13 +541,9 @@ impl Builder {
541
541
protos : & [ impl AsRef < Path > ] ,
542
542
includes : & [ impl AsRef < Path > ] ,
543
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) ;
544
+ if let Some ( out_dir) = self . out_dir . as_ref ( ) {
545
+ config. out_dir ( out_dir) ;
546
+ }
551
547
if let Some ( path) = self . file_descriptor_set_path . as_ref ( ) {
552
548
config. file_descriptor_set_path ( path) ;
553
549
}
You can’t perform that action at this time.
0 commit comments