Fixed more clippy warnings #44
development.yml
on: push
Matrix: Test / Build & Test
Matrix: Coverage / Coverage
Analyze
/
Check | Clippy
35s
Analyze
/
Check | Audit
8s
Coverage
/
Deploy
10s
Analyze
/
Format Code
10s
Release
/
Create Pre Release
0s
Release
/
Create Release Pull Request
0s
Annotations
6 warnings
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference:
compiler/src/gen/rust/util.rs#L93
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
--> compiler/src/gen/rust/util.rs:93:36
|
93 | 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#L73
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
--> compiler/src/gen/rust/util.rs:73:22
|
73 | 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
|
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference:
compiler/src/gen/rust/util.rs#L93
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
--> compiler/src/gen/rust/util.rs:93:36
|
93 | 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
|
method `from_iter` can be confused for the standard trait method `std::iter::FromIterator::from_iter`:
compiler/src/gen/file/content.rs#L39
warning: method `from_iter` can be confused for the standard trait method `std::iter::FromIterator::from_iter`
--> compiler/src/gen/file/content.rs:39:5
|
39 | / pub fn from_iter<D: Display>(mut iter: impl Iterator<Item = D>) -> Self {
40 | | Self {
41 | | header: None,
42 | | body: iter.join("\n"),
43 | | footer: None,
44 | | }
45 | | }
| |_____^
|
= help: consider implementing the trait `std::iter::FromIterator` or choosing a less ambiguous method name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
= note: `#[warn(clippy::should_implement_trait)]` 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#L73
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
--> compiler/src/gen/rust/util.rs:73:22
|
73 | 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
|
method `from_iter` can be confused for the standard trait method `std::iter::FromIterator::from_iter`:
compiler/src/gen/file/content.rs#L39
warning: method `from_iter` can be confused for the standard trait method `std::iter::FromIterator::from_iter`
--> compiler/src/gen/file/content.rs:39:5
|
39 | / pub fn from_iter<D: Display>(mut iter: impl Iterator<Item = D>) -> Self {
40 | | Self {
41 | | header: None,
42 | | body: iter.join("\n"),
43 | | footer: None,
44 | | }
45 | | }
| |_____^
|
= help: consider implementing the trait `std::iter::FromIterator` or choosing a less ambiguous method name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
= note: `#[warn(clippy::should_implement_trait)]` on by default
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
coverage-macos-13
|
326 KB |
|
coverage-ubuntu-20.04
|
325 KB |
|
coverage-windows-2019
|
323 KB |
|
github-pages
Expired
|
546 KB |
|