Merge pull request #53 from oscartbeaumont/language-specific-configs #79
clippy
24 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 24 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.1 (d5c2e9c34 2023-09-13)
- cargo 1.72.1 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (d5c2e9c 2023-09-13)
Annotations
Check warning on line 393 in src/lib.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> src/lib.rs:393:50
|
393 | let (invoke_handler, event_collection) = self.export_inner().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: if you don't want to handle the `Err` case gracefully, 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 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
Check warning on line 72 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: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
Check warning on line 71 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: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)]`