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
While the problem is obvious (you need to include winreg::enums::KEY_READ), the failure case is confusing. It might be more intuitive if enum_values (and presumably enum_keys) returned a single Err for the ERROR_ACCESS_DENIED, returned an empty iterator, or had a return value of io::Result<EnumValues> instead. :)
The text was updated successfully, but these errors were encountered:
The following code will never terminate (until it runs out of memory):
While the problem is obvious (you need to include
winreg::enums::KEY_READ
), the failure case is confusing. It might be more intuitive ifenum_values
(and presumablyenum_keys
) returned a singleErr
for theERROR_ACCESS_DENIED
, returned an empty iterator, or had a return value ofio::Result<EnumValues>
instead. :)The text was updated successfully, but these errors were encountered: