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
///Swagger Endpoint//////Swagger docs (UI)//////Sends a `GET` request to `/docs/{proxy}`pubasyncfn get_swagger_docs_proxy<'a>(&'a self,proxy:&'a str,) -> Result<ResponseValue<()>,Error<()>>{let url = format!("{}/docs/{}",self.baseurl, encode_path(&proxy.to_string()),);
Clippy output:
warning: unnecessary use of `to_string`
--> src/codegen.rs:1636:67
|
1636 | let url = format!("{}/docs/{}", self.baseurl, encode_path(&proxy.to_string()),);
| ^^^^^^^^^^^^^^^^^^ help: use: `proxy`
|
= note: `#[warn(clippy::unnecessary_to_owned)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
Clippy output:
Swagger def:
To be clar: this seems a bit worse than the other warnings. This is an extra unnecessary allocation.
The text was updated successfully, but these errors were encountered: