mirror of
https://github.com/openharmony/third_party_rust_openssl-probe.git
synced 2026-07-01 10:18:23 -04:00
Fix use after move error introduced in new Rust version
This commit is contained in:
+4
-4
@@ -48,12 +48,12 @@ pub fn find_certs_dirs() -> Vec<PathBuf> {
|
||||
/// variables are valid.
|
||||
pub fn init_ssl_cert_env_vars() -> bool {
|
||||
let ProbeResult { cert_file, cert_dir } = probe();
|
||||
match cert_file {
|
||||
Some(path) => put(ENV_CERT_FILE, path),
|
||||
match &cert_file {
|
||||
Some(path) => put(ENV_CERT_FILE, path.to_path_buf()),
|
||||
None => {}
|
||||
}
|
||||
match cert_dir {
|
||||
Some(path) => put(ENV_CERT_DIR, path),
|
||||
match &cert_dir {
|
||||
Some(path) => put(ENV_CERT_DIR, path.to_path_buf()),
|
||||
None => {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user