diff --git a/rtc_udh/src/lib.rs b/rtc_udh/src/lib.rs index bba43649..f2a4097d 100644 --- a/rtc_udh/src/lib.rs +++ b/rtc_udh/src/lib.rs @@ -45,7 +45,7 @@ fn get_responder(id: &u64) -> Result { .or(Err(sgx_status_t::SGX_ERROR_UNEXPECTED))? .get(id) .ok_or(sgx_status_t::SGX_ERROR_INVALID_ENCLAVE_ID) - .map(Clone::clone) + .cloned() } #[no_mangle]