The unique client ID passed to set_client_id will often be generated (otherwise it might be hard to keep it unique).
set_client_id was accepting a&str reference which makes passing a generating ID much harder and makes no sense performance-wise because set_client_id was converting it back to String anyways.
With this patch it is possible to pass a generated String to set_client_id directly. It's even faster, because the generated String can now be moved and not copied.
The unique client ID passed to
set_client_id
will often be generated (otherwise it might be hard to keep it unique).set_client_id
was accepting a&str
reference which makes passing a generating ID much harder and makes no sense performance-wise becauseset_client_id
was converting it back toString
anyways. With this patch it is possible to pass a generatedString
toset_client_id
directly. It's even faster, because the generatedString
can now be moved and not copied.