[windows-registry
] set_string
set_expand_string
and set_multi_string
are hard to use
#3313
Labels
enhancement
New feature or request
Suggestion
set_string
set_expand_string
andset_multi_string
only accept one generic type. This can make them hard to use, as it means thename
andvalue
need to use the same string type. Can it be changed so that they have two generic types, one forname
and another forvalue
?New Signatures:
Note
set_multi_string
does not accept an empty array easily with this signature.I came across a problem with code like this.
It was causing an error (
E0308
), becauseproviders
was aVec<String>
and the generic typeT
was&str
.I fixed by adding
.to_string()
after"ProviderOrder"
. I feel like that is bad rust code, but it was the easiest way to fix it.The text was updated successfully, but these errors were encountered: