diff --git a/client/cli/src/params/webrtc_certificate_params.rs b/client/cli/src/params/webrtc_certificate_params.rs index 8fc6ec7846163..c16c4a0d8d414 100644 --- a/client/cli/src/params/webrtc_certificate_params.rs +++ b/client/cli/src/params/webrtc_certificate_params.rs @@ -46,12 +46,12 @@ impl WebRTCCertificateParams { /// Create a `WebRTCConfig` from the given `WebRTCCertificateParams` in the context /// of an optional network config storage directory. pub fn webrtc_certificate(&self, net_config_dir: &PathBuf) -> error::Result { - let cert = self + let filename = self .webrtc_certificate_file .clone() .unwrap_or_else(|| net_config_dir.join(WEBRTC_CERTIFICATE_FILENAME)); - Ok(WebRTCConfig::File(Some(cert))) + Ok(WebRTCConfig::File(Some(filename))) } }