Skip to content

build: add env-logger, log for implement proper logger #65 #320

build: add env-logger, log for implement proper logger #65

build: add env-logger, log for implement proper logger #65 #320

Triggered via push October 5, 2023 00:52
Status Success
Total duration 7m 13s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

rust-clippy.yml

on: push
Run rust-clippy analyzing
7m 1s
Run rust-clippy analyzing
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L265
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:265:41 | 265 | func.call::<(), ()>(()).expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L227
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:227:34 | 227 | ... .expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L216
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:216:30 | 216 | ... .expect(format!("Failed to set key: {}", key).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Failed to set key: {}", key))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call = note: `#[warn(clippy::expect_fun_call)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L65
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:65:5 | 64 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 65 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 64 ~ 65 ~ path_base.join("fluere") |
Run rust-clippy analyzing
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1, actions-rs/audit-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Run rust-clippy analyzing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Run rust-clippy analyzing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Run rust-clippy analyzing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Run rust-clippy analyzing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L265
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:265:41 | 265 | func.call::<(), ()>(()).expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L227
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:227:34 | 227 | ... .expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L216
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:216:30 | 216 | ... .expect(format!("Failed to set key: {}", key).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Failed to set key: {}", key))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call = note: `#[warn(clippy::expect_fun_call)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L65
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:65:5 | 64 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 65 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 64 ~ 65 ~ path_base.join("fluere") |
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L265
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:265:41 | 265 | func.call::<(), ()>(()).expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L227
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:227:34 | 227 | ... .expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L216
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:216:30 | 216 | ... .expect(format!("Failed to set key: {}", key).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Failed to set key: {}", key))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call = note: `#[warn(clippy::expect_fun_call)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L65
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:65:5 | 64 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 65 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 64 ~ 65 ~ path_base.join("fluere") |
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L265
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:265:41 | 265 | func.call::<(), ()>(()).expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L227
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:227:34 | 227 | ... .expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L216
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:216:30 | 216 | ... .expect(format!("Failed to set key: {}", key).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Failed to set key: {}", key))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call = note: `#[warn(clippy::expect_fun_call)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L65
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:65:5 | 64 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 65 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 64 ~ 65 ~ path_base.join("fluere") |
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L265
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:265:41 | 265 | func.call::<(), ()>(()).expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L227
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:227:34 | 227 | ... .expect(format!("Error on plugin: {}", plugin_name).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error on plugin: {}", plugin_name))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
use of `expect` followed by a function call: fluere-plugin/src/lib.rs#L216
warning: use of `expect` followed by a function call --> fluere-plugin/src/lib.rs:216:30 | 216 | ... .expect(format!("Failed to set key: {}", key).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Failed to set key: {}", key))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call = note: `#[warn(clippy::expect_fun_call)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L65
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:65:5 | 64 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 65 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 64 ~ 65 ~ path_base.join("fluere") |