Parser rewrite #3147
Annotations
28 errors and 1 warning
tests (ubuntu-22.04, stable, std):
burn-import/src/onnx/from_onnx.rs#L343
[clippy] reported by reviewdog 🐶
error: this `if` statement can be collapsed
--> burn-import/src/onnx/from_onnx.rs:343:9
|
343 | / if node.node_type == NodeType::Unsqueeze {
344 | | if node.inputs[1].value.is_none() {
345 | | if let Some(in_arg) = graph_io.get(&node.outputs[0].name) {
346 | | remap_unsqueeze_to_reshape(node, in_arg);
347 | | }
348 | | }
349 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `-D clippy::collapsible-if` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]`
help: collapse nested if block
|
343 ~ if node.node_type == NodeType::Unsqueeze && node.inputs[1].value.is_none() {
344 + if let Some(in_arg) = graph_io.get(&node.outputs[0].name) {
345 + remap_unsqueeze_to_reshape(node, in_arg);
346 + }
347 + }
|
Raw Output:
burn-import/src/onnx/from_onnx.rs:343:9:e:error: this `if` statement can be collapsed
--> burn-import/src/onnx/from_onnx.rs:343:9
|
343 | / if node.node_type == NodeType::Unsqueeze {
344 | | if node.inputs[1].value.is_none() {
345 | | if let Some(in_arg) = graph_io.get(&node.outputs[0].name) {
346 | | remap_unsqueeze_to_reshape(node, in_arg);
347 | | }
348 | | }
349 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `-D clippy::collapsible-if` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]`
help: collapse nested if block
|
343 ~ if node.node_type == NodeType::Unsqueeze && node.inputs[1].value.is_none() {
344 + if let Some(in_arg) = graph_io.get(&node.outputs[0].name) {
345 + remap_unsqueeze_to_reshape(node, in_arg);
346 + }
347 + }
|
__END__
|
tests (ubuntu-22.04, stable, std):
burn-import/src/onnx/from_onnx.rs#L407
[clippy] reported by reviewdog 🐶
error: variable does not need to be mutable
--> burn-import/src/onnx/from_onnx.rs:407:17
|
407 | inputs: mut inner_inputs,
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_mut)]`
Raw Output:
burn-import/src/onnx/from_onnx.rs:407:17:e:error: variable does not need to be mutable
--> burn-import/src/onnx/from_onnx.rs:407:17
|
407 | inputs: mut inner_inputs,
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_mut)]`
__END__
|
tests (ubuntu-22.04, stable, std):
burn-import/src/onnx/from_onnx.rs#L408
[clippy] reported by reviewdog 🐶
error: variable does not need to be mutable
--> burn-import/src/onnx/from_onnx.rs:408:18
|
408 | outputs: mut inner_outputs,
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
Raw Output:
burn-import/src/onnx/from_onnx.rs:408:18:e:error: variable does not need to be mutable
--> burn-import/src/onnx/from_onnx.rs:408:18
|
408 | outputs: mut inner_outputs,
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
__END__
|
tests (ubuntu-22.04, stable, std):
burn-import/src/onnx/coalesce.rs#L189
[clippy] reported by reviewdog 🐶
error: function `convert_node2` is never used
--> burn-import/src/onnx/coalesce.rs:189:15
|
189 | pub(crate) fn convert_node2(bias_node: &Node, mut current_node: RefMut<'_, Node>) {
| ^^^^^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
Raw Output:
burn-import/src/onnx/coalesce.rs:189:15:e:error: function `convert_node2` is never used
--> burn-import/src/onnx/coalesce.rs:189:15
|
189 | pub(crate) fn convert_node2(bias_node: &Node, mut current_node: RefMut<'_, Node>) {
| ^^^^^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
__END__
|
tests (ubuntu-22.04, stable, std):
burn-import/src/onnx/from_onnx.rs#L295
[clippy] reported by reviewdog 🐶
error: needlessly taken reference of both operands
--> burn-import/src/onnx/from_onnx.rs:295:12
|
295 | if &node.node_type == &NodeType::Linear {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `-D clippy::op-ref` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::op_ref)]`
help: use the values directly
|
295 | if node.node_type == NodeType::Linear {
| ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
Raw Output:
burn-import/src/onnx/from_onnx.rs:295:12:e:error: needlessly taken reference of both operands
--> burn-import/src/onnx/from_onnx.rs:295:12
|
295 | if &node.node_type == &NodeType::Linear {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `-D clippy::op-ref` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::op_ref)]`
help: use the values directly
|
295 | if node.node_type == NodeType::Linear {
| ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
__END__
|
tests (ubuntu-22.04, stable, std):
burn-import/src/onnx/from_onnx.rs#L311
[clippy] reported by reviewdog 🐶
error: needlessly taken reference of both operands
--> burn-import/src/onnx/from_onnx.rs:311:12
|
311 | if &node.node_type == &NodeType::Constant
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
help: use the values directly
|
311 | if node.node_type == NodeType::Constant
| ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
Raw Output:
burn-import/src/onnx/from_onnx.rs:311:12:e:error: needlessly taken reference of both operands
--> burn-import/src/onnx/from_onnx.rs:311:12
|
311 | if &node.node_type == &NodeType::Constant
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
help: use the values directly
|
311 | if node.node_type == NodeType::Constant
| ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
__END__
|
tests (ubuntu-22.04, stable, std):
burn-import/src/onnx/from_onnx.rs#L312
[clippy] reported by reviewdog 🐶
error: needlessly taken reference of both operands
--> burn-import/src/onnx/from_onnx.rs:312:17
|
312 | || (&node.node_type == &NodeType::Identity && node.inputs[0].value.is_some())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
help: use the values directly
|
312 | || (node.node_type == NodeType::Identity && node.inputs[0].value.is_some())
| ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
Raw Output:
burn-import/src/onnx/from_onnx.rs:312:17:e:error: needlessly taken reference of both operands
--> burn-import/src/onnx/from_onnx.rs:312:17
|
312 | || (&node.node_type == &NodeType::Identity && node.inputs[0].value.is_some())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
help: use the values directly
|
312 | || (node.node_type == NodeType::Identity && node.inputs[0].value.is_some())
| ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
__END__
|
tests (ubuntu-22.04, stable, std)
reviewdog exited with status code: 1
|
tests (ubuntu-22.04, stable, no-std)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (ubuntu-22.04, stable, no-std)
The operation was canceled.
|
tests (windows-2022, stable, examples)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (windows-2022, stable, examples)
The operation was canceled.
|
tests (windows-2022, stable, std)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (windows-2022, stable, std)
The operation was canceled.
|
tests (windows-2022, 1.75.0, std)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (windows-2022, 1.75.0, std)
The operation was canceled.
|
tests (ubuntu-22.04, 1.75.0, no-std)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (ubuntu-22.04, 1.75.0, no-std)
The operation was canceled.
|
tests (ubuntu-22.04, 1.75.0, std)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (ubuntu-22.04, 1.75.0, std)
The operation was canceled.
|
tests (macos-13, stable, examples)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (macos-13, stable, examples)
The operation was canceled.
|
tests (macos-13, 1.75.0, std)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (macos-13, 1.75.0, std)
The operation was canceled.
|
tests (ubuntu-22.04, stable, examples)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (ubuntu-22.04, stable, examples)
The operation was canceled.
|
tests (macos-13, stable, std)
The job was canceled because "ubuntu-22_04_stable_std" failed.
|
tests (macos-13, stable, std)
The operation was canceled.
|
tests (ubuntu-22.04, stable, std)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: giraffate/clippy-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|