doc: Fix "lazy continuation" in slog::Logger #14
Clippy (Stable ~ Linux/x86_64)
Clippy failed.
Details
Running cargo clippy
took roughly ~2094ms to complete
- Working Directory: repository directory
Annotations
Check warning on line 284 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L284
unknown lint: `clippy::alloc_instead_of_core`
Raw output
warning: unknown lint: `clippy::alloc_instead_of_core`
--> src/lib.rs:284:5
|
284 | clippy::alloc_instead_of_core,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::cloned_instead_of_copied`
|
= note: `#[warn(unknown_lints)]` on by default
Check warning on line 284 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L284
unknown lint: `clippy::alloc_instead_of_core`
Raw output
warning: unknown lint: `clippy::alloc_instead_of_core`
--> src/lib.rs:284:5
|
284 | clippy::alloc_instead_of_core,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::cloned_instead_of_copied`
|
= note: `#[warn(unknown_lints)]` on by default
Check warning on line 285 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L285
unknown lint: `clippy::std_instead_of_core`
Raw output
warning: unknown lint: `clippy::std_instead_of_core`
--> src/lib.rs:285:5
|
285 | clippy::std_instead_of_core,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::bind_instead_of_map`
Check warning on line 285 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L285
unknown lint: `clippy::std_instead_of_core`
Raw output
warning: unknown lint: `clippy::std_instead_of_core`
--> src/lib.rs:285:5
|
285 | clippy::std_instead_of_core,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::bind_instead_of_map`
Check warning on line 286 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L286
unknown lint: `clippy::std_instead_of_alloc`
Raw output
warning: unknown lint: `clippy::std_instead_of_alloc`
--> src/lib.rs:286:5
|
286 | clippy::std_instead_of_alloc,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::bind_instead_of_map`
Check warning on line 286 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L286
unknown lint: `clippy::std_instead_of_alloc`
Raw output
warning: unknown lint: `clippy::std_instead_of_alloc`
--> src/lib.rs:286:5
|
286 | clippy::std_instead_of_alloc,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::bind_instead_of_map`
Check failure on line 3269 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L3269
using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
Raw output
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3269:34
|
3269 | 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
|
3269 | 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
|
3269 | s.serialize(self.record, <&str>::clone(self.key), self.serializer)
| ~~~~~~~~~~~~~~~~~~~~~~~
Check failure on line 3278 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L3278
using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
Raw output
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3278:47
|
3278 | 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
|
3278 | let _ = self.serializer.emit_unit(&(*self.key).clone());
| ~~~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3278 | let _ = self.serializer.emit_unit(<&str>::clone(self.key));
| ~~~~~~~~~~~~~~~~~~~~~~~
Check failure on line 3656 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L3656
using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
Raw output
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3656:34
|
3656 | 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
|
3656 | self.1.serialize(record, &(*self.0).clone(), serializer)
| ~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3656 | self.1.serialize(record, <&str>::clone(self.0), serializer)
| ~~~~~~~~~~~~~~~~~~~~~
Check failure on line 3269 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L3269
using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
Raw output
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3269:34
|
3269 | 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
|
3269 | 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
|
3269 | s.serialize(self.record, <&str>::clone(self.key), self.serializer)
| ~~~~~~~~~~~~~~~~~~~~~~~
Check failure on line 3278 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L3278
using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
Raw output
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3278:47
|
3278 | 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
|
3278 | let _ = self.serializer.emit_unit(&(*self.key).clone());
| ~~~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3278 | let _ = self.serializer.emit_unit(<&str>::clone(self.key));
| ~~~~~~~~~~~~~~~~~~~~~~~
Check failure on line 3656 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.56.1 (59eed8a2a 2021-11-01) in
/home/runner/work/slog/slog/src/lib.rs#L3656
using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
Raw output
error: using `clone` on a double-reference; this will copy the reference of type `&str` instead of cloning the inner type
--> src/lib.rs:3656:34
|
3656 | 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
|
3656 | self.1.serialize(record, &(*self.0).clone(), serializer)
| ~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
3656 | self.1.serialize(record, <&str>::clone(self.0), serializer)
| ~~~~~~~~~~~~~~~~~~~~~