fix macros version #95
clippy
27 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 27 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.74.0 (79e9716c9 2023-11-13)
- cargo 1.74.0 (ecb9851af 2023-10-18)
- clippy 0.1.74 (79e9716 2023-11-13)
Annotations
Check warning on line 414 in src/lib.rs
github-actions / clippy
very complex type used. Consider factoring parts into `type` definitions
warning: very complex type used. Consider factoring parts into `type` definitions
--> src/lib.rs:414:24
|
414 | 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)]`
Check warning on line 382 in src/lib.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> src/lib.rs:382:50
|
382 | let (invoke_handler, event_collection) = self.export_inner().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> src/lib.rs:111:22
|
111 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic
| ^^^^^^^^^^^^^^^^^^^
Check warning on line 81 in src/event.rs
github-actions / clippy
`panic` should not be present in production code
warning: `panic` should not be present in production code
--> src/event.rs:81:28
|
81 | .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
Check warning on line 34 in src/event.rs
github-actions / clippy
`panic` should not be present in production code
warning: `panic` should not be present in production code
--> src/event.rs:34:13
|
34 | 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
Check warning on line 30 in src/event.rs
github-actions / clippy
`panic` should not be present in production code
warning: `panic` should not be present in production code
--> src/event.rs:30:13
|
30 | 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
| ^^^^^^^^^^^^^
Check warning on line 56 in src/ts.rs
github-actions / clippy
single-character string constant used as pattern
warning: single-character string constant used as pattern
--> src/ts.rs:56:60
|
56 | builder.extend(function.docs.split("\n"));
| ^^^^ help: try using a `char` instead: `'\n'`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
Check warning on line 43 in src/js.rs
github-actions / clippy
single-character string constant used as pattern
warning: single-character string constant used as pattern
--> src/js.rs:43:60
|
43 | builder.extend(function.docs.split("\n"));
| ^^^^ help: try using a `char` instead: `'\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)]`
Check warning on line 98 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 97 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 96 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 95 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 94 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 92 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 91 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 90 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 89 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 88 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 83 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 82 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 81 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 80 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 79 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 75 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 74 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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
Check warning on line 73 in src/lib.rs
github-actions / clippy
using tabs in doc comments is not recommended
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