Remove extra spaces from error #168
clippy
15 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 15 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.71.1 (eb26296b5 2023-08-03)
- cargo 1.71.1 (7f1d04c00 2023-07-29)
- clippy 0.1.71 (eb26296 2023-08-03)
Annotations
Check warning on line 206 in src/lang/ts/mod.rs
github-actions / clippy
`panic` should not be present in production code
warning: `panic` should not be present in production code
--> src/lang/ts/mod.rs:206:44
|
206 | .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
Check warning on line 204 in src/lang/ts/mod.rs
github-actions / clippy
`panic` should not be present in production code
warning: `panic` should not be present in production code
--> src/lang/ts/mod.rs:204:44
|
204 | .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)]
| ^^^^^^^^^^^^^
Check warning on line 124 in src/lang/ts/mod.rs
github-actions / clippy
deref on an immutable reference
warning: deref on an immutable reference
--> src/lang/ts/mod.rs:124:46
|
124 | (!generics.is_empty()).then_some(&*generics)
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
help: if you would like to reborrow, try removing `&*`
|
124 | (!generics.is_empty()).then_some(generics)
| ~~~~~~~~
help: if you would like to deref, try using `&**`
|
124 | (!generics.is_empty()).then_some(&**generics)
| ~~~~~~~~~~~
Check warning on line 121 in src/lang/ts/mod.rs
github-actions / clippy
deref on an immutable reference
warning: deref on an immutable reference
--> src/lang/ts/mod.rs:121:46
|
121 | (!generics.is_empty()).then_some(&*generics)
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
= note: `#[warn(clippy::borrow_deref_ref)]` implied by `#[warn(clippy::all)]`
help: if you would like to reborrow, try removing `&*`
|
121 | (!generics.is_empty()).then_some(generics)
| ~~~~~~~~
help: if you would like to deref, try using `&**`
|
121 | (!generics.is_empty()).then_some(&**generics)
| ~~~~~~~~~~~
Check warning on line 20 in src/export/ts.rs
github-actions / clippy
useless conversion to the same type: `export::export::TypesIter`
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)]`
Check warning on line 1 in src/export/mod.rs
github-actions / clippy
module has the same name as its containing module
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)]`
Check warning on line 19 in src/datatype/tuple.rs
github-actions / clippy
missing documentation for a struct field
warning: missing documentation for a struct field
--> src/datatype/tuple.rs:19:9
|
19 | generics: Vec<Cow<'static, str>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 18 in src/datatype/tuple.rs
github-actions / clippy
missing documentation for a struct field
warning: missing documentation for a struct field
--> src/datatype/tuple.rs:18:9
|
18 | fields: Vec<DataType>,
| ^^^^^^^^^^^^^^^^^^^^^
Check warning on line 21 in src/datatype/object.rs
github-actions / clippy
missing documentation for a struct field
warning: missing documentation for a struct field
--> src/datatype/object.rs:21:5
|
21 | pub tag: Option<Cow<'static, str>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 20 in src/datatype/object.rs
github-actions / clippy
missing documentation for a struct field
warning: missing documentation for a struct field
--> src/datatype/object.rs:20:5
|
20 | pub fields: Vec<ObjectField>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 19 in src/datatype/object.rs
github-actions / clippy
missing documentation for a struct field
warning: missing documentation for a struct field
--> src/datatype/object.rs:19:5
|
19 | pub generics: Vec<Cow<'static, str>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> src/lib.rs:58:58
|
58 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic, missing_docs)]
| ^^^^^^^^^^^^
Check warning on line 66 in src/lang/ts/reserved_terms.rs
github-actions / clippy
constant `RESERVED_IDENTS` is never used
warning: constant `RESERVED_IDENTS` is never used
--> src/lang/ts/reserved_terms.rs:66:18
|
66 | pub(super) const RESERVED_IDENTS: &[&str] = &[
| ^^^^^^^^^^^^^^^
Check warning on line 35 in src/datatype/enum.rs
github-actions / clippy
method `generics` is never used
warning: method `generics` is never used
--> src/datatype/enum.rs:35:19
|
34 | impl EnumType {
| ------------- method in this implementation
35 | pub(crate) fn generics(&self) -> &Vec<Cow<'static, str>> {
| ^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Check warning on line 290 in src/lang/ts/mod.rs
github-actions / clippy
unused variable: `generics`
warning: unused variable: `generics`
--> src/lang/ts/mod.rs:290:36
|
290 | TupleType::Named { fields, generics } => match &fields[..] {
| ^^^^^^^^ help: try ignoring the field: `generics: _`
|
= note: `#[warn(unused_variables)]` on by default
Check warning on line 49 in src/export/export.rs
github-actions / clippy
unneeded unit return type
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)]`