diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 251a3a9b..bbaecbc0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -119,7 +119,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: -- -D warnings + args: --workspace --all-targets --all-features -- -D warnings -W clippy::all doc: name: cargo doc diff --git a/check.sh b/check.sh index 6e8dc0f0..e0786d9f 100755 --- a/check.sh +++ b/check.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -eu +set -eux # Checks all tests, lints etc. # Basically does what the CI does. diff --git a/epi/src/lib.rs b/epi/src/lib.rs index 2d3d9065..93aa99fe 100644 --- a/epi/src/lib.rs +++ b/epi/src/lib.rs @@ -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(),