Skip to content

Layout's

Layout's #322

Triggered via pull request November 25, 2023 11:06
Status Failure
Total duration 2m 59s
Artifacts

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 11 warnings
build (windows-latest)
Process completed with exit code 1.
build (ubuntu-latest)
The job was canceled because "windows-latest" failed.
build (ubuntu-latest)
The operation was canceled.
type parameter `T` goes unused in function definition: src/registry.rs#L15
warning: type parameter `T` goes unused in function definition --> src/registry.rs:15:24 | 15 | fn insert_with_name<T: Type>(&mut self, name: impl Into<Cow<'static, str>>) { | ^^^^^^^^^ help: consider removing the parameter | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
type parameter `T` goes unused in function definition: src/registry.rs#L11
warning: type parameter `T` goes unused in function definition --> src/registry.rs:11:14 | 11 | fn insert<T: NamedType>(&mut self) { | ^^^^^^^^^^^^^^ help: consider removing the parameter | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters = note: `#[warn(clippy::extra_unused_type_parameters)]` implied by `#[warn(clippy::all)]`
`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)]`
methods `insert` and `insert_with_name` are never used: src/registry.rs#L11
warning: methods `insert` and `insert_with_name` are never used --> src/registry.rs:11:8 | 10 | impl Registry { | ------------- methods in this implementation 11 | fn insert<T: NamedType>(&mut self) { | ^^^^^^ ... 15 | fn insert_with_name<T: Type>(&mut self, name: impl Into<Cow<'static, str>>) { | ^^^^^^^^^^^^^^^^
field `types` is never read: src/registry.rs#L7
warning: field `types` is never read --> src/registry.rs:7:5 | 6 | pub struct Registry { | -------- field in this struct 7 | types: Vec<NamedDataType>, | ^^^^^ | = note: `Registry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
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
unused variable: `name`: src/registry.rs#L15
warning: unused variable: `name` --> src/registry.rs:15:45 | 15 | fn insert_with_name<T: Type>(&mut self, name: impl Into<Cow<'static, str>>) { | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` | = note: `#[warn(unused_variables)]` 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/