Checking 2b51c512f156f04229fe59a606da43c843b41b95 #30
Annotations
14 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy@master. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
src/lib.rs#L130
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:130:86
|
130 | if family == WebiconFamily::Emojis && !unic_emoji_char::is_emoji(str_to_char(&id)) {
| ^^^ help: change this to: `id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
src/lib.rs#L130
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:130:86
|
130 | if family == WebiconFamily::Emojis && !unic_emoji_char::is_emoji(str_to_char(&id)) {
| ^^^ help: change this to: `id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
src/lib.rs#L147
warning: use of `expect` followed by a function call
--> src/lib.rs:147:36
|
147 | emojis::get(&emoji_string).expect(&format!("Unable to get emoji from id {}.", id))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("Unable to get emoji from id {}.", id))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
= note: `#[warn(clippy::expect_fun_call)]` on by default
|
src/lib.rs#L147
warning: use of `expect` followed by a function call
--> src/lib.rs:147:36
|
147 | emojis::get(&emoji_string).expect(&format!("Unable to get emoji from id {}.", id))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("Unable to get emoji from id {}.", id))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
= note: `#[warn(clippy::expect_fun_call)]` on by default
|
src/lib.rs#L161
warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
--> src/lib.rs:161:9
|
161 | s.chars().nth(0).unwrap()
| ^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `s.chars().next()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
= note: `#[warn(clippy::iter_nth_zero)]` on by default
|
src/lib.rs#L161
warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
--> src/lib.rs:161:9
|
161 | s.chars().nth(0).unwrap()
| ^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `s.chars().next()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
= note: `#[warn(clippy::iter_nth_zero)]` on by default
|
examples/print_html.rs#L8
warning: `to_string` applied to a type that implements `Display` in `println!` args
--> examples/print_html.rs:8:24
|
8 | println!("{}", html.to_string());
| ^^^^^^^^^^^^ help: remove this
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
= note: `#[warn(clippy::to_string_in_format_args)]` on by default
|
src/main.rs#L33
warning: useless use of `format!`
--> src/main.rs:33:14
|
33 | _ => format!("{}", id),
| ^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `id.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|
src/main.rs#L33
warning: useless use of `format!`
--> src/main.rs:33:14
|
33 | _ => format!("{}", id),
| ^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `id.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|
The logs for this run have expired and are no longer available.
Loading