make input context could clone device value from output ctx #1497
Annotations
4 errors and 2 warnings
build:
src/context/mod.rs#L84
[clippy] reported by reviewdog 🐶
error: consider adding a `;` to the last statement for consistent formatting
--> src/context/mod.rs:84:9
|
84 | self.device = out_ctx.clone()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.device = out_ctx.clone();`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
= note: `-D clippy::semicolon-if-nothing-returned` implied by `-D clippy::pedantic`
= help: to override `-D clippy::pedantic` add `#[allow(clippy::semicolon_if_nothing_returned)]`
Raw Output:
src/context/mod.rs:84:9:e:error: consider adding a `;` to the last statement for consistent formatting
--> src/context/mod.rs:84:9
|
84 | self.device = out_ctx.clone()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.device = out_ctx.clone();`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
= note: `-D clippy::semicolon-if-nothing-returned` implied by `-D clippy::pedantic`
= help: to override `-D clippy::pedantic` add `#[allow(clippy::semicolon_if_nothing_returned)]`
__END__
|
build:
src/context/mod.rs#L84
[clippy] reported by reviewdog 🐶
error: using `clone` on type `Device<N>` which implements the `Copy` trait
--> src/context/mod.rs:84:23
|
84 | self.device = out_ctx.clone()
| ^^^^^^^^^^^^^^^ help: try dereferencing it: `*out_ctx`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D clippy::all`
= help: to override `-D clippy::all` add `#[allow(clippy::clone_on_copy)]`
Raw Output:
src/context/mod.rs:84:23:e:error: using `clone` on type `Device<N>` which implements the `Copy` trait
--> src/context/mod.rs:84:23
|
84 | self.device = out_ctx.clone()
| ^^^^^^^^^^^^^^^ help: try dereferencing it: `*out_ctx`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D clippy::all`
= help: to override `-D clippy::all` add `#[allow(clippy::clone_on_copy)]`
__END__
|
build:
src/context/mod.rs#L304
[clippy] reported by reviewdog 🐶
error: consider adding a `;` to the last statement for consistent formatting
--> src/context/mod.rs:304:9
|
304 | self.endpoints.fill(Endpoint::new())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.endpoints.fill(Endpoint::new());`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
Raw Output:
src/context/mod.rs:304:9:e:error: consider adding a `;` to the last statement for consistent formatting
--> src/context/mod.rs:304:9
|
304 | self.endpoints.fill(Endpoint::new())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.endpoints.fill(Endpoint::new());`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
__END__
|
build
Process completed with exit code 101.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|