mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Run clippy on all targets and all features (#347)
* Run clippy on all targets and all features * check.sh: print each step * impl ToString -related clippy fix
This commit is contained in:
@@ -340,6 +340,7 @@ pub mod http {
|
||||
|
||||
impl Request {
|
||||
/// Create a `GET` requests with the given url.
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
pub fn get(url: impl ToString) -> Self {
|
||||
Self {
|
||||
method: "GET".to_owned(),
|
||||
@@ -349,6 +350,7 @@ pub mod http {
|
||||
}
|
||||
|
||||
/// Create a `POST` requests with the give url and body.
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
pub fn post(url: impl ToString, body: impl ToString) -> Self {
|
||||
Self {
|
||||
method: "POST".to_owned(),
|
||||
|
||||
Reference in New Issue
Block a user