Skip to content

Sweep: fix: git pull on downloaded plugin does not working (✓ Sandbox Passed) #66

Sweep: fix: git pull on downloaded plugin does not working (✓ Sandbox Passed)

Sweep: fix: git pull on downloaded plugin does not working (✓ Sandbox Passed) #66

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Jan 3, 2024 in 0s

clippy

1 error, 3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 3
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check failure on line 112 in fluere-plugin/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`?` couldn't convert the error to `mlua::Error`

error[E0277]: `?` couldn't convert the error to `mlua::Error`
   --> fluere-plugin/src/lib.rs:112:109
    |
112 | ...                   remote.fetch(&["refs/heads/*:refs/heads/*"], None, None)?;
    |                                                                               ^ the trait `std::convert::From<git2::Error>` is not implemented for `mlua::Error`
    |
    = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
    = help: the following other types implement trait `std::convert::From<T>`:
              <mlua::Error as std::convert::From<std::io::Error>>
              <mlua::Error as std::convert::From<std::net::AddrParseError>>
              <mlua::Error as std::convert::From<std::str::Utf8Error>>
    = note: required for `std::result::Result<(), mlua::Error>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, git2::Error>>`

Check warning on line 2 in fluere-plugin/src/downloader.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this import is redundant

warning: this import is redundant
 --> fluere-plugin/src/downloader.rs:2:1
  |
2 | use git2;
  | ^^^^^^^^^ help: remove it entirely
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
  = note: `#[warn(clippy::single_component_path_imports)]` on by default

Check warning on line 91 in fluereflow/src/types/fluereflow.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function has too many arguments (27/7)

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

Check warning on line 75 in fluere-config/src/init.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

returning the result of a `let` binding from a block

warning: returning the result of a `let` binding from a block
  --> fluere-config/src/init.rs:75:5
   |
74 |     let path_config = path_base.join("fluere");
   |     ------------------------------------------- unnecessary `let` binding
75 |     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
   |
74 ~     
75 ~     path_base.join("fluere")
   |