Fix use after move error introduced in new Rust version

This commit is contained in:
timvisee
2018-10-11 13:07:12 +02:00
parent f72b101cfa
commit 5118849a67
+4 -4
View File
@@ -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 => {}
}