Fix git pull issue and unwrap error #47
rust-fmt.yml
on: pull_request
Run rustfmt style commit
26s
Annotations
1 error and 1 warning
unresolved import `git2`:
fluere-plugin/src/downloader.rs#L2
error[E0432]: unresolved import `git2`
--> fluere-plugin/src/downloader.rs:2:5
|
2 | use git2::{Cred, FetchOptions, RemoteCallbacks, Repository};
| ^^^^ use of undeclared crate or module `git2`
|
returning the result of a `let` binding from a block:
fluere-config/src/init.rs#L75
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")
|
|