Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moss/boulder: Add support for font providers #316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

moss/boulder: Add support for font providers

82163e3
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

moss/boulder: Add support for font providers #316

moss/boulder: Add support for font providers
82163e3
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy failed Aug 19, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (1)

boulder/src/package/analysis/handler.rs|142 col 8| warning: this boolean expression can be simplified
--> boulder/src/package/analysis/handler.rs:142:8
|
142 | if !info.target_path.starts_with("/usr/share/font")
| ^
143 | | && !(info.file_name().ends_with(".ttf") || info.file_name().ends_with(".otf"))
| |
______________________________________________________________________________^ help: try: !(info.target_path.starts_with("/usr/share/font") || info.file_name().ends_with(".ttf") || info.file_name().ends_with(".otf"))
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
= note: #[warn(clippy::nonminimal_bool)] on by default

Filtered Findings (0)

Annotations

Check warning on line 142 in boulder/src/package/analysis/handler.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] boulder/src/package/analysis/handler.rs#L142

warning: this boolean expression can be simplified
   --> boulder/src/package/analysis/handler.rs:142:8
    |
142 |       if !info.target_path.starts_with("/usr/share/font")
    |  ________^
143 | |         && !(info.file_name().ends_with(".ttf") || info.file_name().ends_with(".otf"))
    | |______________________________________________________________________________________^ help: try: `!(info.target_path.starts_with("/usr/share/font") || info.file_name().ends_with(".ttf") || info.file_name().ends_with(".otf"))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
    = note: `#[warn(clippy::nonminimal_bool)]` on by default
Raw output
boulder/src/package/analysis/handler.rs:142:8:w:warning: this boolean expression can be simplified
   --> boulder/src/package/analysis/handler.rs:142:8
    |
142 |       if !info.target_path.starts_with("/usr/share/font")
    |  ________^
143 | |         && !(info.file_name().ends_with(".ttf") || info.file_name().ends_with(".otf"))
    | |______________________________________________________________________________________^ help: try: `!(info.target_path.starts_with("/usr/share/font") || info.file_name().ends_with(".ttf") || info.file_name().ends_with(".otf"))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
    = note: `#[warn(clippy::nonminimal_bool)]` on by default


__END__