ci: Use auguwu/clippy-action@1.4.0 to run clippy #90
Annotations
8 errors and 4 warnings
Clippy:
src/lib.rs#L3288
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3288:34
|
3288 | s.serialize(self.record, self.key.clone(), self.serializer)
| ^^^^^^^^^^^^^^^^
|
= note: `#[deny(clippy::clone_double_ref)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
help: try dereferencing it
|
3288 | s.serialize(self.record, &(*self.key).clone(), self.serializer)
| ~~~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3288 | s.serialize(self.record, <&str>::clone(self.key), self.serializer)
| ~~~~~~~~~~~~~~~~~~~~~~~
|
Clippy:
src/lib.rs#L3297
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3297:47
|
3297 | let _ = self.serializer.emit_unit(self.key.clone());
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
help: try dereferencing it
|
3297 | let _ = self.serializer.emit_unit(&(*self.key).clone());
| ~~~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3297 | let _ = self.serializer.emit_unit(<&str>::clone(self.key));
| ~~~~~~~~~~~~~~~~~~~~~~~
|
Clippy:
src/lib.rs#L3675
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3675:34
|
3675 | self.1.serialize(record, self.0.clone(), serializer)
| ^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
help: try dereferencing it
|
3675 | self.1.serialize(record, &(*self.0).clone(), serializer)
| ~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3675 | self.1.serialize(record, <&str>::clone(self.0), serializer)
| ~~~~~~~~~~~~~~~~~~~~~
|
Clippy
error: aborting due to 3 previous errors; 1 warning emitted
|
Clippy:
src/lib.rs#L3288
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3288:34
|
3288 | s.serialize(self.record, self.key.clone(), self.serializer)
| ^^^^^^^^^^^^^^^^
|
= note: `#[deny(clippy::clone_double_ref)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
help: try dereferencing it
|
3288 | s.serialize(self.record, &(*self.key).clone(), self.serializer)
| ~~~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3288 | s.serialize(self.record, <&str>::clone(self.key), self.serializer)
| ~~~~~~~~~~~~~~~~~~~~~~~
|
Clippy:
src/lib.rs#L3297
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3297:47
|
3297 | let _ = self.serializer.emit_unit(self.key.clone());
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
help: try dereferencing it
|
3297 | let _ = self.serializer.emit_unit(&(*self.key).clone());
| ~~~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3297 | let _ = self.serializer.emit_unit(<&str>::clone(self.key));
| ~~~~~~~~~~~~~~~~~~~~~~~
|
Clippy:
src/lib.rs#L3675
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3675:34
|
3675 | self.1.serialize(record, self.0.clone(), serializer)
| ^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
help: try dereferencing it
|
3675 | self.1.serialize(record, &(*self.0).clone(), serializer)
| ~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3675 | self.1.serialize(record, <&str>::clone(self.0), serializer)
| ~~~~~~~~~~~~~~~~~~~~~
|
Clippy
error: aborting due to 3 previous errors; 1 warning emitted
|
Clippy
clippy-action doesn't have permissions to create Check Runs, disabling!
|
Clippy
Resource not accessible by integration - https://docs.github.com/rest/checks/runs#create-a-check-run
|
Clippy:
src/lib.rs#L1901
warning: very complex type used. Consider factoring parts into `type` definitions
--> src/lib.rs:1901:16
|
1901 | type Err = (
| ________________^
1902 | | result::Result<D1::Ok, D1::Err>,
1903 | | result::Result<D2::Ok, D2::Err>,
1904 | | );
| |_____^
|
= note: `#[warn(clippy::type_complexity)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
|
Clippy:
src/lib.rs#L1901
warning: very complex type used. Consider factoring parts into `type` definitions
--> src/lib.rs:1901:16
|
1901 | type Err = (
| ________________^
1902 | | result::Result<D1::Ok, D1::Err>,
1903 | | result::Result<D2::Ok, D2::Err>,
1904 | | );
| |_____^
|
= note: `#[warn(clippy::type_complexity)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
|
Loading