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
I think it's useless for it to take ownership of the query. A reference should work just fine. This way i can lazily initialize my query object and reuse a reference to it over and over.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. I must admit I didn't yet know about the Borrow trait. Which is a shame, given how useful it clearly is. The Option<impl Borrow<Query>> is very much the preferred route
https://github.com/aprimadi/influxdb2/blob/11b8b9d23568d09672cf8ed85b7d878c0deaa8e4/src/api/query.rs#L100C57-L100C62
I think it's useless for it to take ownership of the query. A reference should work just fine. This way i can lazily initialize my query object and reuse a reference to it over and over.
The text was updated successfully, but these errors were encountered: