Merge remote-tracking branch 'origin/develop' into develop #27
clippy
8 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 8 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.80.1 (3f5fd8dd4 2024-08-06)
- cargo 1.80.1 (376290515 2024-07-16)
- clippy 0.1.80 (3f5fd8d 2024-08-06)
Annotations
Check warning on line 49 in compiler/src/interface.rs
github-actions / clippy
you should consider adding a `Default` implementation for `Loader`
warning: you should consider adding a `Default` implementation for `Loader`
--> compiler/src/interface.rs:44:5
|
44 | / pub fn new() -> Self {
45 | | Self {
46 | | models: Vec::new(),
47 | | imported_models: Vec::new(),
48 | | }
49 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
help: try adding this
|
43 + impl Default for Loader {
44 + fn default() -> Self {
45 + Self::new()
46 + }
47 + }
|
Check warning on line 37 in compiler/src/gen/template/util.rs
github-actions / clippy
all variants have the same postfix: `Case`
warning: all variants have the same postfix: `Case`
--> compiler/src/gen/template/util.rs:33:1
|
33 | / enum Convention {
34 | | PascalCase,
35 | | SnakeCase,
36 | | ScreamingCase,
37 | | }
| |_^
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
= note: `#[warn(clippy::enum_variant_names)]` on by default
Check warning on line 48 in compiler/src/compiler/util.rs
github-actions / clippy
you should consider adding a `Default` implementation for `TypePathMap`
warning: you should consider adding a `Default` implementation for `TypePathMap`
--> compiler/src/compiler/util.rs:44:5
|
44 | / pub fn new() -> Self {
45 | | Self {
46 | | type_path_by_name: HashMap::new(),
47 | | }
48 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
43 + impl Default for TypePathMap {
44 + fn default() -> Self {
45 + Self::new()
46 + }
47 + }
|
Check warning on line 49 in compiler/src/interface.rs
github-actions / clippy
you should consider adding a `Default` implementation for `Loader`
warning: you should consider adding a `Default` implementation for `Loader`
--> compiler/src/interface.rs:44:5
|
44 | / pub fn new() -> Self {
45 | | Self {
46 | | models: Vec::new(),
47 | | imported_models: Vec::new(),
48 | | }
49 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
help: try adding this
|
43 + impl Default for Loader {
44 + fn default() -> Self {
45 + Self::new()
46 + }
47 + }
|
Check warning on line 37 in compiler/src/gen/template/util.rs
github-actions / clippy
all variants have the same postfix: `Case`
warning: all variants have the same postfix: `Case`
--> compiler/src/gen/template/util.rs:33:1
|
33 | / enum Convention {
34 | | PascalCase,
35 | | SnakeCase,
36 | | ScreamingCase,
37 | | }
| |_^
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
= note: `#[warn(clippy::enum_variant_names)]` on by default
Check warning on line 48 in compiler/src/compiler/util.rs
github-actions / clippy
you should consider adding a `Default` implementation for `TypePathMap`
warning: you should consider adding a `Default` implementation for `TypePathMap`
--> compiler/src/compiler/util.rs:44:5
|
44 | / pub fn new() -> Self {
45 | | Self {
46 | | type_path_by_name: HashMap::new(),
47 | | }
48 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
43 + impl Default for TypePathMap {
44 + fn default() -> Self {
45 + Self::new()
46 + }
47 + }
|
Check warning on line 50 in runtime/src/message/util/list_base.rs
github-actions / clippy
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> runtime/src/message/util/list_base.rs:50:13
|
50 | pub unsafe fn from_raw_parts(data: B, len: usize) -> $t<B, T, Item> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: runtime/src/message/util/list.rs:42:1
|
42 | impl_list_base!(List);
| --------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: this warning originates in the macro `impl_list_base` (in Nightly builds, run with -Z macro-backtrace for more info)
Check warning on line 50 in runtime/src/message/util/list_base.rs
github-actions / clippy
unsafe function's docs miss `# Safety` section
warning: unsafe function's docs miss `# Safety` section
--> runtime/src/message/util/list_base.rs:50:13
|
50 | pub unsafe fn from_raw_parts(data: B, len: usize) -> $t<B, T, Item> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: runtime/src/message/util/array.rs:44:1
|
44 | impl_list_base!(Array);
| ---------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `#[warn(clippy::missing_safety_doc)]` on by default
= note: this warning originates in the macro `impl_list_base` (in Nightly builds, run with -Z macro-backtrace for more info)