We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling read_data(...) in a loop requires cloning and constructing new AtSign object each time.
read_data(...)
AtSign
loop { let at_contact = AtSign::new(contact.clone()); at_client .read_data(at_contact, "attalk") .expect("Failed to read data"); thread::sleep(time::Duration::from_secs(4)); }
There is no reason for the AtSign::new() associated function to require String when &str will do. The same is true of the read_data(...) method.
AtSign::new()
String
&str
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
Calling
read_data(...)
in a loop requires cloning and constructing newAtSign
object each time.Describe the solution you'd like
There is no reason for the
AtSign::new()
associated function to requireString
when&str
will do. The same is true of theread_data(...)
method.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: