Skip to content

feat(volo-http): add client ip #973

feat(volo-http): add client ip

feat(volo-http): add client ip #973

GitHub Actions / clippy succeeded Nov 18, 2024 in 0s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.84.0-nightly (5ec7d6eee 2024-11-17)
  • cargo 1.84.0-nightly (69e595908 2024-11-16)
  • clippy 0.1.84 (5ec7d6eee7 2024-11-17)

Annotations

Check warning on line 313 in volo-build/src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` is redundant

warning: this `map_or` is redundant
   --> volo-build/src/util.rs:313:16
    |
313 |             if repo.workdir().map_or(false, |workdir| workdir == path) {
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(repo.workdir() == Some(path))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
    = note: `#[warn(clippy::unnecessary_map_or)]` on by default

Check warning on line 313 in volo-build/src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` is redundant

warning: this `map_or` is redundant
   --> volo-build/src/util.rs:313:16
    |
313 |             if repo.workdir().map_or(false, |workdir| workdir == path) {
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(repo.workdir() == Some(path))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
    = note: `#[warn(clippy::unnecessary_map_or)]` on by default