mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00: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:
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@@ -119,7 +119,7 @@ jobs:
|
|||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
args: -- -D warnings
|
args: --workspace --all-targets --all-features -- -D warnings -W clippy::all
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
name: cargo doc
|
name: cargo doc
|
||||||
|
|||||||
2
check.sh
2
check.sh
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu
|
set -eux
|
||||||
|
|
||||||
# Checks all tests, lints etc.
|
# Checks all tests, lints etc.
|
||||||
# Basically does what the CI does.
|
# Basically does what the CI does.
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ pub mod http {
|
|||||||
|
|
||||||
impl Request {
|
impl Request {
|
||||||
/// Create a `GET` requests with the given url.
|
/// Create a `GET` requests with the given url.
|
||||||
|
#[allow(clippy::needless_pass_by_value)]
|
||||||
pub fn get(url: impl ToString) -> Self {
|
pub fn get(url: impl ToString) -> Self {
|
||||||
Self {
|
Self {
|
||||||
method: "GET".to_owned(),
|
method: "GET".to_owned(),
|
||||||
@@ -349,6 +350,7 @@ pub mod http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Create a `POST` requests with the give url and body.
|
/// 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 {
|
pub fn post(url: impl ToString, body: impl ToString) -> Self {
|
||||||
Self {
|
Self {
|
||||||
method: "POST".to_owned(),
|
method: "POST".to_owned(),
|
||||||
|
|||||||
Reference in New Issue
Block a user