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:
parent
35c7b09285
commit
10b60d5361
3 changed files with 4 additions and 2 deletions
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
|
@ -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
|
||||
|
|
2
check.sh
2
check.sh
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
set -eux
|
||||
|
||||
# Checks all tests, lints etc.
|
||||
# Basically does what the CI does.
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue