doc: Fix "lazy continuation" in slog::Logger #16
Clippy (Stable ~ Linux/x86_64)
Clippy was successful!
Details
Running cargo clippy
took roughly ~1328ms to complete
- Working Directory: repository directory
Annotations
Check warning on line 1295 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.66.1 (90743e729 2023-01-10) in
/home/runner/work/slog/slog/src/lib.rs#L1295
unknown lint: `clippy::arc_with_non_send_sync`
Raw output
warning: unknown lint: `clippy::arc_with_non_send_sync`
--> src/lib.rs:1295:19
|
1295 | allow(clippy::arc_with_non_send_sync)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unknown_lints)]` on by default
Check warning on line 1295 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.66.1 (90743e729 2023-01-10) in
/home/runner/work/slog/slog/src/lib.rs#L1295
unknown lint: `clippy::arc_with_non_send_sync`
Raw output
warning: unknown lint: `clippy::arc_with_non_send_sync`
--> src/lib.rs:1295:19
|
1295 | allow(clippy::arc_with_non_send_sync)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unknown_lints)]` on by default
Check warning on line 22 in /home/runner/work/slog/slog/examples/singlethread.rs
github-actions / Clippy: Rust Stable 1.66.1 (90743e729 2023-01-10) in
/home/runner/work/slog/slog/examples/singlethread.rs#L22
redundant clone
Raw output
warning: redundant clone
--> examples/singlethread.rs:22:19
|
22 | let obj2 = obj.clone();
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> examples/singlethread.rs:22:16
|
22 | let obj2 = obj.clone();
| ^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: `#[warn(clippy::redundant_clone)]` on by default
Check warning on line 2423 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.66.1 (90743e729 2023-01-10) in
/home/runner/work/slog/slog/src/lib.rs#L2423
used import from `std` instead of `alloc`
Raw output
warning: used import from `std` instead of `alloc`
--> src/lib.rs:2423:8
|
2423 | T: std::string::ToString + FromStr + PartialEq + fmt::Debug,
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `alloc`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_alloc
note: the lint level is defined here
--> src/lib.rs:286:5
|
286 | clippy::std_instead_of_alloc,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 37 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.66.1 (90743e729 2023-01-10) in
/home/runner/work/slog/slog/src/lib.rs#L37
used import from `std` instead of `core`
Raw output
warning: used import from `std` instead of `core`
--> src/tests.rs:37:14
|
37 | ) -> std::result::Result<Self::Ok, Self::Err> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_core
note: the lint level is defined here
--> src/lib.rs:285:5
|
285 | clippy::std_instead_of_core,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 69 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.66.1 (90743e729 2023-01-10) in
/home/runner/work/slog/slog/src/lib.rs#L69
used import from `std` instead of `alloc`
Raw output
warning: used import from `std` instead of `alloc`
--> src/tests.rs:69:26
|
69 | struct TestError<E = std::string::ParseError>(&'static str, Option<E>);
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `alloc`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_alloc
Check warning on line 115 in /home/runner/work/slog/slog/src/lib.rs
github-actions / Clippy: Rust Stable 1.66.1 (90743e729 2023-01-10) in
/home/runner/work/slog/slog/src/lib.rs#L115
used import from `std` instead of `core`
Raw output
warning: used import from `std` instead of `core`
--> src/tests.rs:115:18
|
115 | ) -> std::result::Result<Self::Ok, Self::Err> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_core