Merge pull request #82 from oscartbeaumont/remove-plugin #103
Annotations
33 warnings
this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`:
src/lib.rs#L444
warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
--> src/lib.rs:444:5
|
444 | / pub fn build<TManager: Manager<TCommands::Runtime>>(
445 | | self,
446 | | ) -> Result<(TCommands::InvokeHandler, impl FnOnce(&TManager)), TLang::Error> {
| |_________________________________________________________________________________^
|
= help: either add some descriptive text or remove the attribute
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
|
this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`:
src/lib.rs#L427
warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
--> src/lib.rs:427:5
|
427 | / pub fn build_plugin_utils<TManager: Manager<TCommands::Runtime>>(
428 | | mut self,
429 | | plugin_name: &'static str,
430 | | ) -> Result<(TCommands::InvokeHandler, impl FnOnce(&TManager)), TLang::Error> {
| |_________________________________________________________________________________^
|
= help: either add some descriptive text or remove the attribute
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
|
this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`:
src/lib.rs#L416
warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
--> src/lib.rs:416:5
|
416 | pub fn build(self) -> Result<TCommands::InvokeHandler, TLang::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: either add some descriptive text or remove the attribute
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
|
this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`:
src/lib.rs#L404
warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
--> src/lib.rs:404:5
|
404 | / pub fn build_plugin_utils(
405 | | mut self,
406 | | plugin_name: &'static str,
407 | | ) -> Result<TCommands::InvokeHandler, TLang::Error> {
| |_______________________________________________________^
|
= help: either add some descriptive text or remove the attribute
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
= note: `#[warn(clippy::double_must_use)]` implied by `#[warn(clippy::all)]`
|
very complex type used. Consider factoring parts into `type` definitions:
src/lib.rs#L372
warning: very complex type used. Consider factoring parts into `type` definitions
--> src/lib.rs:372:24
|
372 | fn render(self) -> Result<(String, (TCommands::InvokeHandler, EventCollection)), TLang::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` implied by `#[warn(clippy::all)]`
|
`panic` should not be present in production code:
src/event.rs#L86
warning: `panic` should not be present in production code
--> src/event.rs:86:28
|
86 | .unwrap_or_else(|| panic!("Event {name} not found in registry!"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic
|
`panic` should not be present in production code:
src/event.rs#L35
warning: `panic` should not be present in production code
--> src/event.rs:35:13
|
35 | panic!("Another event with name {} is already registered!", E::NAME)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic
|
`panic` should not be present in production code:
src/event.rs#L31
warning: `panic` should not be present in production code
--> src/event.rs:31:13
|
31 | panic!("Event {} registered twice!", E::NAME)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic
note: the lint level is defined here
--> src/lib.rs:111:43
|
111 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic
| ^^^^^^^^^^^^^
|
single-character string constant used as pattern:
src/ts.rs#L56
warning: single-character string constant used as pattern
--> src/ts.rs:56:60
|
56 | builder.extend(function.docs.split("\n"));
| ^^^^ help: consider using a `char`: `'\n'`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
|
single-character string constant used as pattern:
src/js.rs#L43
warning: single-character string constant used as pattern
--> src/js.rs:43:60
|
43 | builder.extend(function.docs.split("\n"));
| ^^^^ help: consider using a `char`: `'\n'`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
= note: `#[warn(clippy::single_char_pattern)]` implied by `#[warn(clippy::all)]`
|
unit tests in doctest are not executed:
src/lib.rs#L86
warning: unit tests in doctest are not executed
--> src/lib.rs:86:5
|
86 | //! #[test]
| _____^
87 | | //! fn export_bindings() {
| |______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest
= note: `#[warn(clippy::test_attr_in_doctest)]` implied by `#[warn(clippy::all)]`
|
using tabs in doc comments is not recommended:
src/lib.rs#L98
warning: using tabs in doc comments is not recommended
--> src/lib.rs:98:4
|
98 | //! .unwrap();
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L97
warning: using tabs in doc comments is not recommended
--> src/lib.rs:97:4
|
97 | //! .export()
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L96
warning: using tabs in doc comments is not recommended
--> src/lib.rs:96:4
|
96 | //! .path("../src/bindings.js")
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L95
warning: using tabs in doc comments is not recommended
--> src/lib.rs:95:4
|
95 | //! .commands(collect_commands![greet, greet2, greet3])
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L94
warning: using tabs in doc comments is not recommended
--> src/lib.rs:94:4
|
94 | //! js::builder()
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L92
warning: using tabs in doc comments is not recommended
--> src/lib.rs:92:4
|
92 | //! .unwrap();
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L91
warning: using tabs in doc comments is not recommended
--> src/lib.rs:91:4
|
91 | //! .export()
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L90
warning: using tabs in doc comments is not recommended
--> src/lib.rs:90:4
|
90 | //! .path("../src/bindings.ts")
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L89
warning: using tabs in doc comments is not recommended
--> src/lib.rs:89:4
|
89 | //! .commands(collect_commands![greet, greet2, greet3])
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L88
warning: using tabs in doc comments is not recommended
--> src/lib.rs:88:4
|
88 | //! ts::builder()
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L83
warning: using tabs in doc comments is not recommended
--> src/lib.rs:83:4
|
83 | //! .unwrap();
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L82
warning: using tabs in doc comments is not recommended
--> src/lib.rs:82:4
|
82 | //! .export()
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L81
warning: using tabs in doc comments is not recommended
--> src/lib.rs:81:4
|
81 | //! .path("../src/bindings.js")
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L80
warning: using tabs in doc comments is not recommended
--> src/lib.rs:80:4
|
80 | //! .commands(collect_commands![greet, greet2, greet3])
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L79
warning: using tabs in doc comments is not recommended
--> src/lib.rs:79:4
|
79 | //! js::builder()
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L75
warning: using tabs in doc comments is not recommended
--> src/lib.rs:75:4
|
75 | //! .unwrap();
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L74
warning: using tabs in doc comments is not recommended
--> src/lib.rs:74:4
|
74 | //! .export()
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L73
warning: using tabs in doc comments is not recommended
--> src/lib.rs:73:4
|
73 | //! .path("../src/bindings.ts")
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L72
warning: using tabs in doc comments is not recommended
--> src/lib.rs:72:4
|
72 | //! .commands(collect_commands![greet, greet2, greet3])
| ^^^^^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
src/lib.rs#L71
warning: using tabs in doc comments is not recommended
--> src/lib.rs:71:4
|
71 | //! ts::builder()
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
note: the lint level is defined here
--> src/lib.rs:111:9
|
111 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic
| ^^^^^^^^^^^
= note: `#[warn(clippy::tabs_in_doc_comments)]` implied by `#[warn(clippy::all)]`
|
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|