moss/boulder: Add support for font providers #316
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
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__