Layout's #319
Annotations
1 error and 6 warnings
build (windows-latest)
Process completed with exit code 1.
|
`panic` should not be present in production code:
src/lang/ts/export_config.rs#L90
warning: `panic` should not be present in production code
--> src/lang/ts/export_config.rs:90:40
|
90 | .unwrap_or_else(|| panic!("Type '{:?}' not found in type map", r.sid()));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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/lang/ts/export_config.rs#L83
warning: `panic` should not be present in production code
--> src/lang/ts/export_config.rs:83:40
|
83 | .unwrap_or_else(|| panic!("Type '{:?}' not found in type map", r.sid()));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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:3:43
|
3 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic)] // TODO: missing_docs
| ^^^^^^^^^^^^^
|
using a reference to `Cow` is not recommended:
src/lang/ts/export_config.rs#L75
warning: using a reference to `Cow` is not recommended
--> src/lang/ts/export_config.rs:75:15
|
75 | name: &Cow<'static, str>,
| ^^^^^^^^^^^^^^^^^^ help: change this to: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
|
using a reference to `Cow` is not recommended:
src/lang/ts/export_config.rs#L37
warning: using a reference to `Cow` is not recommended
--> src/lang/ts/export_config.rs:37:15
|
37 | name: &Cow<'static, str>,
| ^^^^^^^^^^^^^^^^^^ help: change this to: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
note: the lint level is defined here
--> src/lib.rs:3:9
|
3 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic)] // TODO: missing_docs
| ^^^^^^^^^^^
= note: `#[warn(clippy::ptr_arg)]` implied by `#[warn(clippy::all)]`
|
constant `RESERVED_IDENTS` is never used:
src/lang/ts/reserved_terms.rs#L66
warning: constant `RESERVED_IDENTS` is never used
--> src/lang/ts/reserved_terms.rs:66:18
|
66 | pub(crate) const RESERVED_IDENTS: &[&str] = &[
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
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/
|