Skip to content

Rename TypeSID to SpectaID #185

Rename TypeSID to SpectaID

Rename TypeSID to SpectaID #185

Triggered via push August 31, 2023 18:15
Status Success
Total duration 5m 30s
Artifacts

ci.yml

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

Annotations

30 warnings
missing documentation for an associated constant: src/type/mod.rs#L116
warning: missing documentation for an associated constant --> src/type/mod.rs:116:5 | 116 | const IMPL_LOCATION: ImplLocation; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated constant: src/type/mod.rs#L115
warning: missing documentation for an associated constant --> src/type/mod.rs:115:5 | 115 | const SID: SpectaID; | ^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/type/mod.rs#L27
warning: missing documentation for a variant --> src/type/mod.rs:27:5 | 27 | InvalidType(ImplLocation, &'static str), | ^^^^^^^^^^^
`panic` should not be present in production code: src/lang/ts/mod.rs#L197
warning: `panic` should not be present in production code --> src/lang/ts/mod.rs:197:44 | 197 | .unwrap_or_else(|| panic!("Type {} has no value!", r.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/lang/ts/mod.rs#L195
warning: `panic` should not be present in production code --> src/lang/ts/mod.rs:195:44 | 195 | .unwrap_or_else(|| panic!("Type {} not found!", r.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:58:43 | 58 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic, missing_docs)] | ^^^^^^^^^^^^^
missing documentation for a variant: src/lang/ts/error.rs#L48
warning: missing documentation for a variant --> src/lang/ts/error.rs:48:5 | 48 | Other(ExportPath, String), | ^^^^^
missing documentation for a variant: src/lang/ts/error.rs#L46
warning: missing documentation for a variant --> src/lang/ts/error.rs:46:5 | 46 | Io(#[from] std::io::Error), | ^^
missing documentation for a variant: src/lang/ts/error.rs#L44
warning: missing documentation for a variant --> src/lang/ts/error.rs:44:5 | 44 | SpectaExportError(#[from] ExportError), | ^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/lang/ts/error.rs#L42
warning: missing documentation for a variant --> src/lang/ts/error.rs:42:5 | 42 | DuplicateTypeName(Cow<'static, str>, ImplLocation, ImplLocation), | ^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/lang/ts/error.rs#L40
warning: missing documentation for a variant --> src/lang/ts/error.rs:40:5 | 40 | InvalidTagging(ExportPath), | ^^^^^^^^^^^^^^
missing documentation for a variant: src/lang/ts/error.rs#L38
warning: missing documentation for a variant --> src/lang/ts/error.rs:38:5 | 38 | ForbiddenName(NamedLocation, ExportPath, &'static str), | ^^^^^^^^^^^^^
missing documentation for a variant: src/lang/ts/error.rs#L36
warning: missing documentation for a variant --> src/lang/ts/error.rs:36:5 | 36 | UnableToTagUnnamedType(ExportPath), | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/lang/ts/error.rs#L34
warning: missing documentation for a variant --> src/lang/ts/error.rs:34:5 | 34 | BigIntForbidden(ExportPath), | ^^^^^^^^^^^^^^^
useless conversion to the same type: `export::export::TypesIter`: src/export/ts.rs#L19
warning: useless conversion to the same type: `export::export::TypesIter` --> src/export/ts.rs:19:17 | 19 | let types = get_types()? | _________________^ 20 | | .into_iter() | |____________________^ help: consider removing `.into_iter()`: `get_types()?` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` implied by `#[warn(clippy::all)]`
module has the same name as its containing module: src/export/mod.rs#L1
warning: module has the same name as its containing module --> src/export/mod.rs:1:1 | 1 | mod export; | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception = note: `#[warn(clippy::module_inception)]` implied by `#[warn(clippy::all)]`
missing documentation for a struct field: src/datatype/tuple.rs#L19
warning: missing documentation for a struct field --> src/datatype/tuple.rs:19:9 | 19 | generics: Vec<GenericType>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/datatype/tuple.rs#L18
warning: missing documentation for a struct field --> src/datatype/tuple.rs:18:9 | 18 | fields: Vec<DataType>, | ^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/struct.rs#L51
warning: missing documentation for a method --> src/datatype/struct.rs:51:5 | 51 | pub fn tag(&self) -> &Option<Cow<'static, str>> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/struct.rs#L47
warning: missing documentation for a method --> src/datatype/struct.rs:47:5 | 47 | pub fn fields(&self) -> impl Iterator<Item = &StructField> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/struct.rs#L43
warning: missing documentation for a method --> src/datatype/struct.rs:43:5 | 43 | pub fn generics(&self) -> impl Iterator<Item = &GenericType> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/named.rs#L62
warning: missing documentation for a method --> src/datatype/named.rs:62:5 | 62 | pub fn ext(&self) -> &Option<NamedDataTypeExt> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/named.rs#L58
warning: missing documentation for a method --> src/datatype/named.rs:58:5 | 58 | pub fn deprecated(&self) -> &Option<Cow<'static, str>> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/named.rs#L54
warning: missing documentation for a method --> src/datatype/named.rs:54:5 | 54 | pub fn comments(&self) -> &Vec<Cow<'static, str>> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/named.rs#L50
warning: missing documentation for a method --> src/datatype/named.rs:50:5 | 50 | pub fn name(&self) -> &Cow<'static, str> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/named.rs#L27
warning: missing documentation for a method --> src/datatype/named.rs:27:5 | 27 | pub fn export(&self) -> &Option<bool> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/named.rs#L23
warning: missing documentation for a method --> src/datatype/named.rs:23:5 | 23 | pub fn impl_location(&self) -> &ImplLocation { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/datatype/named.rs#L19
warning: missing documentation for a method --> src/datatype/named.rs:19:5 | 19 | pub fn sid(&self) -> &SpectaID { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: the lint level is defined here --> src/lib.rs:58:58 | 58 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic, missing_docs)] | ^^^^^^^^^^^^
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(super) const RESERVED_IDENTS: &[&str] = &[ | ^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unneeded unit return type: src/export/export.rs#L49
warning: unneeded unit return type --> src/export/export.rs:49:30 | 49 | pub fn register_ty<T: Type>() -> () { | ^^^^^^ help: remove the `-> ()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit note: the lint level is defined here --> src/lib.rs:58:9 | 58 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic, missing_docs)] | ^^^^^^^^^^^ = note: `#[warn(clippy::unused_unit)]` implied by `#[warn(clippy::all)]`
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/