Skip to content

Removed TODO

Removed TODO #34

Triggered via push September 6, 2024 21:35
Status Success
Total duration 3m 11s
Artifacts 3

development.yml

on: push
Matrix: Test / Build & Test
Matrix: Coverage / Coverage
Analyze  /  Check | Clippy
28s
Analyze / Check | Clippy
Analyze  /  Check | Audit
17s
Analyze / Check | Audit
Release  /  Get Version
4s
Release / Get Version
Analyze  /  Format Code
18s
Analyze / Format Code
Release  /  Create Pre Release
37s
Release / Create Pre Release
Release  /  Create Release Pull Request
0s
Release / Create Release Pull Request
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
length comparison to one: /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/unions2/structures.rs#L151
warning: length comparison to one --> /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/unions2/structures.rs:151:12 | 151 | if self.data.as_ref().len() < 1 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.data.as_ref().is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
length comparison to one: /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/unions2/structures.rs#L30
warning: length comparison to one --> /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/unions2/structures.rs:30:12 | 30 | if self.data.as_ref().len() < 1 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.data.as_ref().is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
length comparison to one: /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/values/structures.rs#L438
warning: length comparison to one --> /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/values/structures.rs:438:12 | 438 | if self.data.as_ref().len() < 1 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.data.as_ref().is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
length comparison to one: /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/values/structures.rs#L30
warning: length comparison to one --> /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/values/structures.rs:30:12 | 30 | if self.data.as_ref().len() < 1 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.data.as_ref().is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
length comparison to one: /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/enums/structures.rs#L30
warning: length comparison to one --> /home/runner/work/tools.proto/tools.proto/target/debug/build/testprog-8b7416d5632c779d/out/enums/structures.rs:30:12 | 30 | if self.data.as_ref().len() < 1 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.data.as_ref().is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero = note: `#[warn(clippy::len_zero)]` on by default
use of `or_insert` to construct default value: compiler/src/gen/hook.rs#L107
warning: use of `or_insert` to construct default value --> compiler/src/gen/hook.rs:107:42 | 107 | let entry = self.map.entry(name).or_insert(Vec::new()); | ^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default = note: `#[warn(clippy::unwrap_or_default)]` on by default
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference: compiler/src/gen/rust/util.rs#L97
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference --> compiler/src/gen/rust/util.rs:97:36 | 97 | pub fn to_string_with_defaults(self) -> Cow<'a, str> { | ^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference: compiler/src/gen/rust/util.rs#L77
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference --> compiler/src/gen/rust/util.rs:77:22 | 77 | pub fn to_string(self) -> Cow<'a, str> { | ^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention = note: `#[warn(clippy::wrong_self_convention)]` on by default
use of `or_insert` to construct default value: compiler/src/gen/hook.rs#L107
warning: use of `or_insert` to construct default value --> compiler/src/gen/hook.rs:107:42 | 107 | let entry = self.map.entry(name).or_insert(Vec::new()); | ^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default = note: `#[warn(clippy::unwrap_or_default)]` on by default
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference: compiler/src/gen/rust/util.rs#L97
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference --> compiler/src/gen/rust/util.rs:97:36 | 97 | pub fn to_string_with_defaults(self) -> Cow<'a, str> { | ^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference: compiler/src/gen/rust/util.rs#L77
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference --> compiler/src/gen/rust/util.rs:77:22 | 77 | pub fn to_string(self) -> Cow<'a, str> { | ^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention = note: `#[warn(clippy::wrong_self_convention)]` on by default

Artifacts

Produced during runtime
Name Size
coverage-macos-12
254 KB
coverage-ubuntu-20.04
254 KB
coverage-windows-2019
251 KB